Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[InstCombine] Failure to simplify (A^B)|~A --> ~(A&B) #51820

Closed
jayfoad opened this issue Nov 11, 2021 · 0 comments
Closed

[InstCombine] Failure to simplify (A^B)|~A --> ~(A&B) #51820

jayfoad opened this issue Nov 11, 2021 · 0 comments
Labels
bugzilla Issues migrated from bugzilla

Comments

@jayfoad
Copy link
Contributor

jayfoad commented Nov 11, 2021

Bugzilla Link 52478
Resolution FIXED
Resolved on Nov 21, 2021 11:23
Version trunk
OS Linux
CC @RKSimon,@rotateright
Fixed by commit(s) 7daa95c

Extended Description

InstCombine should simplify (A^B)|~A --> ~(A&B).

Here's CompilerExplorer showing that (a) the transformation is valid according to Alive2, and (b) "opt -O3" does not do it:
https://alive2.llvm.org/ce/#z:OYLghAFBqd5QCxAYwPYBMCmBRdBLAF1QCcAaPECAM1QDsCBlZAQwBtMQBGAFlICsupVs1qhWrAG4BbUgGdM7ZATx1KmWugDCqVgFcptQevQAZPLUwA5fQCNMxLrwAOqWYRW1teg4JdvldGYW1lJ2DjxyCphKHgwEzMQEXvqGnJGKAbRxCQRBVrb2jnLxick%2BabIlueb5oYU8AJRyqLrEyBwA5FhUNQDUeNy9AAIEwAQQA70ApABMAKwADKT9g7NznA3TAOwAQlMLAII2NiD7B73T8zPTAMwAIr0i6CuX68trC2cXaze3DwAeJBeaxmywAtJwvr1iJgCMD5jczlMtnczt0%2BpMhrI2hNVvMlvD1ptkXtDsdTodvlc/r1AcRCWlXp9Ka9flN7rSgZMPuDISy1qsOVy8XNQayoTC4dz5twkSizh0mqwQB05h1SIYOgt1agVSYTAA1ACyvQAkgAlXqyFptTCXG6cdUEFXahpNADWIEWQhV3HVmu1pF1HXVshAS2dWsVpDgsBgiBQqCkTjw7DIFAgaGTqcKqCcBFIPVYBHsYYgJyjpBs5gSAE8VY7SFmpOoCAB5WiseuVrBSETAdgu9X4GExCSYMOVzD/aK6EsN9XmEvKyusPA2Yh17RYBekAjEPBSBdNGj0JhsDgRARpYSiEDiaRCddhyBNPOZSdgtszUNRGKqCBjDKVJSGMPIQjCXxXHcOhgKg/wPHAgpwnSaJMmyUodBSQR5AyWIqiQuoUMqHI4IqAiagg%2BommtVp2i4JUVTVDUhyDFV316CBcEIIFZgdZZtGzNN7Q2Xp9WNM1zSdIc3VIBBMGYLAHAgD0vSWFc/VII9vQDHUVVDcM9xkmN4wgJAsxTNNyEoCycwcNg8HHQtUxLYgywrQNq1oOtd2bVsOy7Vje37QcezwUdlHHSdA2nWd5w6RslwUVi1w3LcME6Rt90PY9CzoRgWEHK8QFBW8xEkGRUpfFSg3zDxJ1/PCAKArDylAjRCMgtI/BgzxWpAnrMk6%2BpUP/LIqjI0b0Io4JkJwib%2BvmnJhvCGibXojYfVVf1WODBzxzBAgJE47iiHpPjGUEyz7HtGZNnEk0LWkqNZPkxTChqjT1W0pZdLYkM5EMyNXVU70VxuHbK2DZ6Qa2n8WKh/SjJeppxzcjwQG4IA%3D%3D%3D

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla
Projects
None yet
Development

No branches or pull requests

1 participant