[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/phi.ll
Chris Lattner
lattner at cs.uiuc.edu
Sun Nov 14 09:54:41 PST 2004
Changes in directory llvm/test/Regression/Transforms/InstCombine:
phi.ll updated: 1.10 -> 1.11
---
Log message:
add a testcase, which we already handle
---
Diffs of the changes: (+11 -1)
Index: llvm/test/Regression/Transforms/InstCombine/phi.ll
diff -u llvm/test/Regression/Transforms/InstCombine/phi.ll:1.10 llvm/test/Regression/Transforms/InstCombine/phi.ll:1.11
--- llvm/test/Regression/Transforms/InstCombine/phi.ll:1.10 Thu May 27 02:39:51 2004
+++ llvm/test/Regression/Transforms/InstCombine/phi.ll Sun Nov 14 11:54:27 2004
@@ -33,7 +33,7 @@
ret int %B
}
-int %test3(bool %b) {
+int %test4(bool %b) {
BB0: ret int 7 ; Loop is unreachable
Loop:
@@ -43,3 +43,13 @@
br label %Loop
}
+int %test5(int %a, bool %b) {
+BB0: br label %Loop
+
+Loop:
+ %B = phi int [%A, %BB0], [undef, %Loop] ; PHI has same value always.
+ br bool %b, label %Loop, label %Exit
+Exit:
+ ret int %B
+}
+
More information about the llvm-commits
mailing list