]> granicus.if.org Git - llvm/commit
[InstCombine] fix matching of or-of-icmps constants (PR32524)
authorSanjay Patel <spatel@rotateright.com>
Mon, 10 Apr 2017 16:55:57 +0000 (16:55 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 10 Apr 2017 16:55:57 +0000 (16:55 +0000)
commitea87eb616e3fff9b3b5391fa1d8154f6df817893
tree6012d5a79cede35aaa322d23a46695e25839312f
parent95d726af97520480f690268ab362a64e94006076
[InstCombine] fix matching of or-of-icmps constants (PR32524)

Also, make the same change in and-of-icmps and remove a hack for detecting that case.

Finally, add some FIXME comments because the code duplication here is awful.

This should fix the remaining IR problem noted in:
https://bugs.llvm.org/show_bug.cgi?id=32524

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299851 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
test/Transforms/InstCombine/or.ll