[llvm-commits] CVS: llvm/test/Transforms/InstCombine/2007-02-23-PhiFoldInfLoop.ll
Chris Lattner
sabre at nondot.org
Fri Feb 23 17:03:28 PST 2007
Changes in directory llvm/test/Transforms/InstCombine:
2007-02-23-PhiFoldInfLoop.ll added (r1.1)
---
Log message:
testcase for pr1217: http://llvm.org/PR1217
---
Diffs of the changes: (+32 -0)
2007-02-23-PhiFoldInfLoop.ll | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+)
Index: llvm/test/Transforms/InstCombine/2007-02-23-PhiFoldInfLoop.ll
diff -c /dev/null llvm/test/Transforms/InstCombine/2007-02-23-PhiFoldInfLoop.ll:1.1
*** /dev/null Fri Feb 23 19:03:21 2007
--- llvm/test/Transforms/InstCombine/2007-02-23-PhiFoldInfLoop.ll Fri Feb 23 19:03:11 2007
***************
*** 0 ****
--- 1,32 ----
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep ret
+ ; PR1217
+
+ target datalayout = "e-p:32:32"
+ target triple = "i686-pc-linux-gnu"
+ %struct.termbox = type { %struct.termbox*, i32, i32, i32, i32, i32 }
+
+ implementation ; Functions:
+
+ define void @ggenorien() {
+ entry:
+ %tmp68 = icmp eq %struct.termbox* null, null ; <i1> [#uses=1]
+ br i1 %tmp68, label %cond_next448, label %bb80
+
+ bb80: ; preds = %entry
+ ret void
+
+ cond_next448: ; preds = %entry
+ br i1 false, label %bb756, label %bb595
+
+ bb595: ; preds = %cond_next448
+ br label %bb609
+
+ bb609: ; preds = %bb756, %bb595
+ %termnum.6240.0 = phi i32 [ 2, %bb595 ], [ %termnum.6, %bb756 ] ; <i32> [#uses=1]
+ %tmp755 = add i32 %termnum.6240.0, 1 ; <i32> [#uses=1]
+ br label %bb756
+
+ bb756: ; preds = %bb609, %cond_next448
+ %termnum.6 = phi i32 [ %tmp755, %bb609 ], [ 2, %cond_next448 ] ; <i32> [#uses=1]
+ br label %bb609
+ }
More information about the llvm-commits
mailing list