diff options
author | Sanjay Patel <spatel@rotateright.com> | 2021-10-06 11:32:46 -0400 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2021-10-06 12:31:25 -0400 |
commit | e36d351d19b1365275c7d5f2bf4e6ac17a42ad2c (patch) | |
tree | 340d61244955a90bfba5b16bbf00538e456e0eb4 /llvm/lib/Analysis/BasicAliasAnalysis.cpp | |
parent | 4666324f2bbd82b5fb218bef3c41121d5494ff4a (diff) | |
download | llvm-e36d351d19b1365275c7d5f2bf4e6ac17a42ad2c.zip llvm-e36d351d19b1365275c7d5f2bf4e6ac17a42ad2c.tar.gz llvm-e36d351d19b1365275c7d5f2bf4e6ac17a42ad2c.tar.bz2 |
[InstSimplify] (x | y) & (x | !y) --> x
https://alive2.llvm.org/ce/z/QagQMn
This fold is handled by instcombine via SimplifyUsingDistributiveLaws(),
but we are missing the sibliing fold for 'logical and' (implemented with
'select'). Retrofitting the code in instcombine looks much harder
than just adding a small adjustment here, and this is potentially more
efficient and beneficial to other passes.
Diffstat (limited to 'llvm/lib/Analysis/BasicAliasAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions