[llvm-commits] [llvm] r78153 - /llvm/trunk/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll

Andreas Bolka a at bolka.at
Tue Aug 4 21:03:30 PDT 2009


Author: abolka
Date: Tue Aug  4 23:03:29 2009
New Revision: 78153

URL: http://llvm.org/viewvc/llvm-project?rev=78153&view=rev
Log:
Fix LDA testcases.

Modified:
    llvm/trunk/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll

Modified: llvm/trunk/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll?rev=78153&r1=78152&r2=78153&view=diff

==============================================================================
--- llvm/trunk/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll (original)
+++ llvm/trunk/test/Analysis/LoopDependenceAnalysis/siv-weak-crossing.ll Tue Aug  4 23:03:29 2009
@@ -13,8 +13,8 @@
 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 @@
 
 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





More information about the llvm-commits mailing list