[llvm-commits] CVS: llvm/test/Regression/Transforms/LICM/scalar_promote.ll
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 23 21:53:01 PST 2003
Changes in directory llvm/test/Regression/Transforms/LICM:
scalar_promote.ll updated: 1.1 -> 1.2
---
Log message:
New testcase for scalar promotion
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/LICM/scalar_promote.ll
diff -u llvm/test/Regression/Transforms/LICM/scalar_promote.ll:1.1 llvm/test/Regression/Transforms/LICM/scalar_promote.ll:1.2
--- llvm/test/Regression/Transforms/LICM/scalar_promote.ll:1.1 Sat Feb 22 16:20:19 2003
+++ llvm/test/Regression/Transforms/LICM/scalar_promote.ll Sun Feb 23 21:52:04 2003
@@ -19,3 +19,18 @@
Out:
ret void
}
+
+void %testhard(int %i) {
+ br label %Loop
+Loop:
+ %X1 = getelementptr int* %X, long 0
+ %A = load int* %X1 ; Aliases X, needs to be rewritten
+ %V = add int %A, 1
+ %X2 = getelementptr int* %X, long 0
+ store int %V, int* %X2
+ br bool false, label %Loop, label %Exit
+
+Exit:
+ ret void
+
+}
More information about the llvm-commits
mailing list