]> granicus.if.org Git - llvm/commit
[InstCombine] look through bswap/bitreverse for equality comparisons
authorSanjay Patel <spatel@rotateright.com>
Sun, 2 Jul 2017 14:34:50 +0000 (14:34 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 2 Jul 2017 14:34:50 +0000 (14:34 +0000)
commitd90638a9854fc341c3fc1da4f0712553b4589b1a
tree2769518bb50b7f7e015f03513560c6fd0711b65d
parentc49c5b222efa4a0778b8ed1e52d1d61a6ea1e8bf
[InstCombine] look through bswap/bitreverse for equality comparisons

I noticed this missed bswap optimization in the CGP memcmp() expansion,
and then I saw that we don't have the fold in InstCombine.

Differential Revision: https://reviews.llvm.org/D34763

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