[llvm] r237897 - Fix memory-dereferenceable.ll test
Artur Pilipenko
apilipenko at azulsystems.com
Thu May 21 05:51:39 PDT 2015
Author: apilipenko
Date: Thu May 21 07:51:38 2015
New Revision: 237897
URL: http://llvm.org/viewvc/llvm-project?rev=237897&view=rev
Log:
Fix memory-dereferenceable.ll test
One of the testcases introduced by D9365 had incorrect !dereferenceable metadata on load. It must fail but it doesn't due to incorrect order of CHECK/CHECK-NOT commands in test. Fixed both.
Reviewed By: sanjoy
Differential Revision: http://reviews.llvm.org/D9877
Modified:
llvm/trunk/test/Analysis/ValueTracking/memory-dereferenceable.ll
Modified: llvm/trunk/test/Analysis/ValueTracking/memory-dereferenceable.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/ValueTracking/memory-dereferenceable.ll?rev=237897&r1=237896&r2=237897&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/ValueTracking/memory-dereferenceable.ll (original)
+++ llvm/trunk/test/Analysis/ValueTracking/memory-dereferenceable.ll Thu May 21 07:51:38 2015
@@ -16,12 +16,12 @@ define void @test(i32 addrspace(1)* dere
; CHECK: %alloca
; CHECK: %dparam
; CHECK: %relocate
-; CHECK: %d4_load
-; CHECK: %d_or_null_non_null_load
; CHECK-NOT: %nparam
; CHECK-NOT: %nd_load
+; CHECK: %d4_load
; CHECK-NOT: %d2_load
; CHECK-NOT: %d_or_null_load
+; CHECK: %d_or_null_non_null_load
entry:
%globalptr = getelementptr inbounds [6 x i8], [6 x i8]* @globalstr, i32 0, i32 0
%load1 = load i8, i8* %globalptr
@@ -35,7 +35,7 @@ entry:
%load5 = load i32, i32 addrspace(1)* %nparam
; Load from a non-dereferenceable load
- %nd_load = load i32*, i32** @globali32ptr, !dereferenceable !0
+ %nd_load = load i32*, i32** @globali32ptr
%load6 = load i32, i32* %nd_load
; Load from a dereferenceable load
More information about the llvm-commits
mailing list