summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/sub-or-and-xor.ll
Commit message (Collapse)AuthorAgeFilesLines
* [NFC] Adjust tests for new foldDavid Bolvansky2019-09-041-4/+4
| | | | llvm-svn: 370886
* [InstCombine] Fold sub (or A, B) (and A, B) to (xor A, B)David Bolvansky2019-09-041-20/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: ``` Name: sub or and to xor %or = or i32 %y, %x %and = and i32 %x, %y %sub = sub i32 %or, %and => %sub = xor i32 %x, %y Optimization: sub or and to xor Done: 1 Optimization is correct! ``` https://rise4fun.com/Alive/eJu Reviewers: spatel, lebedev.ri Reviewed By: lebedev.ri Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67153 llvm-svn: 370883
* [NFC] Added a new test for D67153David Bolvansky2019-09-041-0/+13
| | | | llvm-svn: 370881
* [NFC] Added tests for 'SUB of OR and AND to XOR' foldDavid Bolvansky2019-09-041-0/+103
llvm-svn: 370878
OpenPOWER on IntegriCloud