[llvm-commits] CVS: llvm/test/Regression/Transforms/BasicAA/licmtest.ll

Chris Lattner lattner at cs.uiuc.edu
Mon Feb 24 17:15:01 PST 2003


Changes in directory llvm/test/Regression/Transforms/BasicAA:

licmtest.ll updated: 1.3 -> 1.4

---
Log message:

Fix testcase


---
Diffs of the changes:

Index: llvm/test/Regression/Transforms/BasicAA/licmtest.ll
diff -u llvm/test/Regression/Transforms/BasicAA/licmtest.ll:1.3 llvm/test/Regression/Transforms/BasicAA/licmtest.ll:1.4
--- llvm/test/Regression/Transforms/BasicAA/licmtest.ll:1.3	Sun Feb 23 21:52:13 2003
+++ llvm/test/Regression/Transforms/BasicAA/licmtest.ll	Mon Feb 24 17:14:07 2003
@@ -4,7 +4,7 @@
 ; not be able to eliminate the load itself, without licm's help.  This is 
 ; because, for GCSE, the load is killed by the dummy basic block.
 
-; RUN: if as < %s | opt -basicaa -licm -gcse -simplifycfg -instcombine | dis | grep ToRemove
+; RUN: if as < %s | opt -basicaa -licm -load-vn -gcse -instcombine | dis | grep ToRemove
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
@@ -14,10 +14,10 @@
 implementation
 
 int %test(bool %c) {
-	%ToRemove = load int* %A
-	br label %Loop
-Loop:
 	%Atmp = load int* %A
+	br bool %c, label %Dummy, label %Loop
+Loop:
+	%ToRemove = load int* %A
 	store int %Atmp, int* %B  ; Store cannot alias %A
 
 	br bool %c, label %Out, label %Loop





More information about the llvm-commits mailing list