When the two operands of an icmp are equal, there are five possible predicates
authorNick Lewycky <nicholas@mxc.ca>
Thu, 6 Sep 2007 01:10:22 +0000 (01:10 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 6 Sep 2007 01:10:22 +0000 (01:10 +0000)
commit5a5ff9d7dfdedb8838c6bd7f69ab952c37d624d4
treeaedd3a8f3b8d82af4181300fe317ad93e1242072
parentdd199d29b781bc713462f1255b63d3f153bfd9e9
When the two operands of an icmp are equal, there are five possible predicates
that would make the icmp true. Fixes PR1637.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41740 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/2007-09-05-EqualGEP.ll [new file with mode: 0644]