[ConstantRange] Make getEquivalentICmp smarter
authorSanjoy Das <sanjoy@playingwithpointers.com>
Sun, 2 Oct 2016 00:09:49 +0000 (00:09 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Sun, 2 Oct 2016 00:09:49 +0000 (00:09 +0000)
commit6ef69d97f54cbeb7c1d6764feb125191ad03c413
treec8226380a0199de3b18b43b21712b86989188745
parent54e6a21dca76029753f4ad2dbade9d7595cae128
[ConstantRange] Make getEquivalentICmp smarter

This change teaches getEquivalentICmp to be smarter about generating
ICMP_NE and ICMP_EQ predicates.

llvm-svn: 283057
llvm/lib/IR/ConstantRange.cpp
llvm/unittests/IR/ConstantRangeTest.cpp