commit | 285779ca0f4490a611f79dfdada7f8559118c98d | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Fri Apr 14 19:23:50 2017 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Fri Apr 14 19:23:50 2017 +0000 |
tree | 9fbb0d3308799f288c676f30eb562d59695cfb11 | |
parent | 0b4a709cf73c6071de118b7b0af099454d63d213 [diff] |
[InstCombine] (X != C1 && X != C2) --> (X | (C1 ^ C2)) != C2 ...when C1 differs from C2 by one bit and C1 <u C2: http://rise4fun.com/Alive/Vuo And move related folds to a helper function. This reduces code duplication and will make it easier to remove the scalar-only restriction as a follow-up step. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300364 91177308-0d34-0410-b5e6-96231b3b80d8