summaryrefslogtreecommitdiff
path: root/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll')
-rw-r--r--test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll b/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll
index f71260fb75..1e37750f7c 100644
--- a/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll
+++ b/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll
@@ -13,8 +13,8 @@ entry:
for.body:
%i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
%i.255 = sub i64 255, %i
- %y.ld.addr = getelementptr [256 x i32]* @y, i64 0, i64 %i.255
- %x.ld.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i
+ %y.ld.addr = getelementptr [256 x i32]* @y, i64 0, i64 %i
+ %x.ld.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i.255
%x.st.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i
%x = load i32* %x.ld.addr ; 0
%y = load i32* %y.ld.addr ; 1
@@ -39,9 +39,9 @@ entry:
for.body:
%i = phi i64 [ 0, %entry ], [ %i.next, %for.body ]
- %i.255 = sub i64 0, %i
+ %i.255 = sub i64 255, %i
%y.ld.addr = getelementptr [256 x i32]* @y, i64 0, i64 %i
- %x.ld.addr = getelementptr [256 x i32]* @x, i64 1, i64 %i.255
+ %x.ld.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i.255
%x.st.addr = getelementptr [256 x i32]* @x, i64 0, i64 %i
%x = load i32* %x.ld.addr ; 0
%y = load i32* %y.ld.addr ; 1