summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2015-08-11 15:31:17 +0000
committerMehdi Amini <mehdi.amini@apple.com>2015-08-11 15:31:17 +0000
commitb10555cc618b4bfda5bd08bb76ebdfdbf817d68d (patch)
treed3abe7cd4a8c99b031386a64edd0e76bce8382d1
parentb5c0c58737c86b9a43032f335101dc1642915c05 (diff)
downloadbcm5719-llvm-b10555cc618b4bfda5bd08bb76ebdfdbf817d68d.tar.gz
bcm5719-llvm-b10555cc618b4bfda5bd08bb76ebdfdbf817d68d.zip
Fix InstCombine test: invalid CHECK line slipped in r231270
I incorrectly wrote CHECK-NEXT with followin with ':', the check was ignored by FileCheck. The non-inbound GEP is folded here because the DataLayout is no longer optional, the fold was originally guarded with a comment that said: We need TD information to know the pointer size unless this is inbounds. Now we always have "TD information" and perform the fold. Thanks Jonathan Roelofs for noticing. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 244613
-rw-r--r--llvm/test/Transforms/InstCombine/load-cmp.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/Transforms/InstCombine/load-cmp.ll b/llvm/test/Transforms/InstCombine/load-cmp.ll
index b0bfdc4c4c5..0bd9eb52191 100644
--- a/llvm/test/Transforms/InstCombine/load-cmp.ll
+++ b/llvm/test/Transforms/InstCombine/load-cmp.ll
@@ -233,7 +233,8 @@ define i1 @test10_struct_arr(i32 %x) {
define i1 @test10_struct_arr_noinbounds(i32 %x) {
; CHECK-LABEL: @test10_struct_arr_noinbounds(
-; CHECK-NEXT %p = getelementptr [4 x %Foo], [4 x %Foo]* @GStructArr, i32 0, i32 %x, i32 2
+; CHECK-NEXT: %r = icmp ne i32 %x, 1
+; CHECK-NEXT: ret i1 %r
%p = getelementptr [4 x %Foo], [4 x %Foo]* @GStructArr, i32 0, i32 %x, i32 2
%q = load i32, i32* %p
%r = icmp eq i32 %q, 9
OpenPOWER on IntegriCloud