summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/icmp.ll
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2012-02-26 02:09:49 +0000
committerNick Lewycky <nicholas@mxc.ca>2012-02-26 02:09:49 +0000
commitf7087ea5088d58e81f08a3eeb39ba46fa18d0fd4 (patch)
tree74e5926d44cc460ced13b2223e73f8b87c7259f3 /test/Transforms/InstCombine/icmp.ll
parent8c727f9200cd54adc4a1b742950e80035bc53a20 (diff)
downloadllvm-f7087ea5088d58e81f08a3eeb39ba46fa18d0fd4.tar.gz
llvm-f7087ea5088d58e81f08a3eeb39ba46fa18d0fd4.tar.bz2
llvm-f7087ea5088d58e81f08a3eeb39ba46fa18d0fd4.tar.xz
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
Diffstat (limited to 'test/Transforms/InstCombine/icmp.ll')
-rw-r--r--test/Transforms/InstCombine/icmp.ll4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/Transforms/InstCombine/icmp.ll b/test/Transforms/InstCombine/icmp.ll
index dabb0f3adf..a9ae221d8f 100644
--- a/test/Transforms/InstCombine/icmp.ll
+++ b/test/Transforms/InstCombine/icmp.ll
@@ -634,8 +634,6 @@ define i1 @test62(i8* %a) {
%arrayidx2 = getelementptr inbounds i8* %a, i64 10
%cmp = icmp slt i8* %arrayidx1, %arrayidx2
ret i1 %cmp
-; Don't turn a signed cmp of GEPs into an index compare.
; CHECK: @test62
-; CHECK: %cmp = icmp slt i8* %arrayidx1, %arrayidx2
-; CHECK-NEXT: ret i1 %cmp
+; CHECK-NEXT: ret i1 true
}