[llvm-commits] CVS: llvm/test/Regression/Transforms/LICM/2003-12-11-SinkingToPHI.ll
Chris Lattner
lattner at cs.uiuc.edu
Thu Dec 11 16:16:03 PST 2003
Changes in directory llvm/test/Regression/Transforms/LICM:
2003-12-11-SinkingToPHI.ll added (r1.1)
---
Log message:
New testcase that LICM is breaking crafty on
---
Diffs of the changes: (+20 -0)
Index: llvm/test/Regression/Transforms/LICM/2003-12-11-SinkingToPHI.ll
diff -c /dev/null llvm/test/Regression/Transforms/LICM/2003-12-11-SinkingToPHI.ll:1.1
*** /dev/null Thu Dec 11 16:15:21 2003
--- llvm/test/Regression/Transforms/LICM/2003-12-11-SinkingToPHI.ll Thu Dec 11 16:15:11 2003
***************
*** 0 ****
--- 1,20 ----
+ ; RUN: llvm-as < %s | opt -licm | lli
+
+ implementation ; Functions:
+
+ int %main() {
+ entry:
+ br label %Loop
+
+ Loop:
+ br bool true, label %LoopCont, label %Out
+ LoopCont:
+ %X = add int 1, 0
+ br bool true, label %Out, label %Loop
+
+ Out:
+ %V = phi int [ 2, %Loop], [ %X, %LoopCont]
+ %V2 = sub int %V, 1
+ ret int %V2
+ }
+
More information about the llvm-commits
mailing list