[InstCombine] remove an icmp fold that is already handled by InstSimplify
authorSanjay Patel <spatel@rotateright.com>
Fri, 19 Aug 2016 19:03:07 +0000 (19:03 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 19 Aug 2016 19:03:07 +0000 (19:03 +0000)
commit7a104615c527e9d962027988b89e2fc08fd0e257
treef4a67e9df68aa22aa46efbcdfc88954099ce1a56
parent46d396041bb2d8cdce8ad3a8cca074a59c3716b0
[InstCombine] remove an icmp fold that is already handled by InstSimplify

Specifically, this is done near the end of "SimplifyICmpInst" using
computeKnownBits() as the broader solution. There are even vector
tests (yay!) for this in test/Transforms/InstSimplify/compare.ll.

I considered putting an assert here instead of just deleting, but
then we could assert every possible fold in InstSimplify in
InstCombine, so...less is more?

llvm-svn: 279300
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp