Reinstate the optimization from r151449 with a fix to not turn 'gep %x' into
authorNick Lewycky <nicholas@mxc.ca>
Sun, 26 Feb 2012 02:09:49 +0000 (02:09 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 26 Feb 2012 02:09:49 +0000 (02:09 +0000)
commitf7087ea5088d58e81f08a3eeb39ba46fa18d0fd4
tree74e5926d44cc460ced13b2223e73f8b87c7259f3
parent8c727f9200cd54adc4a1b742950e80035bc53a20
Reinstate the optimization from r151449 with a fix to not turn 'gep %x' into
'gep null' when the icmp predicate is unsigned (or is signed without inbounds).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151467 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstCombine/icmp.ll
test/Transforms/InstSimplify/compare.ll