Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [NFC] Adjust tests for new fold | David Bolvansky | 2019-09-04 | 1 | -4/+4 |
| | | | | llvm-svn: 370886 | ||||
* | [InstCombine] Fold sub (or A, B) (and A, B) to (xor A, B) | David Bolvansky | 2019-09-04 | 1 | -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 D67153 | David Bolvansky | 2019-09-04 | 1 | -0/+13 |
| | | | | llvm-svn: 370881 | ||||
* | [NFC] Added tests for 'SUB of OR and AND to XOR' fold | David Bolvansky | 2019-09-04 | 1 | -0/+103 |
llvm-svn: 370878 |