[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/phi.ll
Chris Lattner
sabre at nondot.org
Sun Jan 14 23:29:44 PST 2007
Changes in directory llvm/test/Regression/Transforms/InstCombine:
phi.ll updated: 1.14 -> 1.15
---
Log message:
new testcase
---
Diffs of the changes: (+12 -0)
phi.ll | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/test/Regression/Transforms/InstCombine/phi.ll
diff -u llvm/test/Regression/Transforms/InstCombine/phi.ll:1.14 llvm/test/Regression/Transforms/InstCombine/phi.ll:1.15
--- llvm/test/Regression/Transforms/InstCombine/phi.ll:1.14 Fri Dec 1 22:23:09 2006
+++ llvm/test/Regression/Transforms/InstCombine/phi.ll Mon Jan 15 01:29:29 2007
@@ -1,6 +1,7 @@
; This test makes sure that these instructions are properly eliminated.
;
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output &&
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep phi
implementation
@@ -65,3 +66,14 @@
ret uint %B
}
+int %test7(int %A, bool %b) {
+BB0: br label %Loop
+
+Loop:
+ %B = phi int [%A, %BB0], [%C, %Loop] ; PHI is dead.
+ %C = add int %B, 123
+ br bool %b, label %Loop, label %Exit
+Exit:
+ ret int 0
+}
+
More information about the llvm-commits
mailing list