summaryrefslogtreecommitdiffstats
path: root/llvm/test/Analysis
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Analysis')
-rw-r--r--llvm/test/Analysis/ScalarEvolution/no-wrap-unknown-becount.ll4
-rw-r--r--llvm/test/Analysis/ScalarEvolution/nsw-offset-assume.ll2
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Analysis/ScalarEvolution/no-wrap-unknown-becount.ll b/llvm/test/Analysis/ScalarEvolution/no-wrap-unknown-becount.ll
index bc01f22b3f3..98739c32925 100644
--- a/llvm/test/Analysis/ScalarEvolution/no-wrap-unknown-becount.ll
+++ b/llvm/test/Analysis/ScalarEvolution/no-wrap-unknown-becount.ll
@@ -55,7 +55,7 @@ loop:
%cmp = icmp slt i32 %iv, 10000
; CHECK: %iv.sext = sext i32 %iv to i64
; CHECK-NEXT: --> {0,+,3}<nuw><nsw><%loop>
- call void @llvm.assume(i1 %cmp)
+ call void @llvm.assume(i1 %cmp) [ "affected"(i32 %iv) ]
%c = load volatile i1, i1* %cond
br i1 %c, label %loop, label %leave
@@ -159,7 +159,7 @@ loop:
%cmp = icmp ugt i32 %iv.inc, -10000
; CHECK: %iv.zext = zext i32 %iv to i64
; CHECK-NEXT: --> {30000,+,-2}<nw><%loop>
- call void @llvm.assume(i1 %cmp)
+ call void @llvm.assume(i1 %cmp) [ "affected"(i32 %iv.inc) ]
%c = load volatile i1, i1* %cond
br i1 %c, label %loop, label %leave
diff --git a/llvm/test/Analysis/ScalarEvolution/nsw-offset-assume.ll b/llvm/test/Analysis/ScalarEvolution/nsw-offset-assume.ll
index 5413b477df5..2e3951a60dd 100644
--- a/llvm/test/Analysis/ScalarEvolution/nsw-offset-assume.ll
+++ b/llvm/test/Analysis/ScalarEvolution/nsw-offset-assume.ll
@@ -11,7 +11,7 @@ define void @foo(i32 %no, double* nocapture %d, double* nocapture %q) nounwind {
entry:
%n = and i32 %no, 4294967294
%0 = icmp sgt i32 %n, 0 ; <i1> [#uses=1]
- tail call void @llvm.assume(i1 %0)
+ tail call void @llvm.assume(i1 %0) [ "affected"(i32 %n) ]
br label %bb.nph
bb.nph: ; preds = %entry
OpenPOWER on IntegriCloud