[llvm-commits] CVS: llvm/test/Regression/Analysis/Dominators/2006-10-02-BreakCritEdges.ll
Chris Lattner
sabre at nondot.org
Tue Oct 3 00:00:27 PDT 2006
Changes in directory llvm/test/Regression/Analysis/Dominators:
2006-10-02-BreakCritEdges.ll added (r1.1)
---
Log message:
New testcase for PR932: http://llvm.org/PR932
---
Diffs of the changes: (+20 -0)
2006-10-02-BreakCritEdges.ll | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+)
Index: llvm/test/Regression/Analysis/Dominators/2006-10-02-BreakCritEdges.ll
diff -c /dev/null llvm/test/Regression/Analysis/Dominators/2006-10-02-BreakCritEdges.ll:1.1
*** /dev/null Tue Oct 3 02:00:23 2006
--- llvm/test/Regression/Analysis/Dominators/2006-10-02-BreakCritEdges.ll Tue Oct 3 02:00:13 2006
***************
*** 0 ****
--- 1,20 ----
+ ; RUN: llvm-as < %s | opt -domtree -break-crit-edges -analyze -domtree | grep '3.*%brtrue$'
+ ; PR932
+ implementation ; Functions:
+
+ declare void %use1(int)
+
+ void %f(int %i, bool %c) {
+ entry:
+ %A = seteq int %i, 0 ; <bool> [#uses=1]
+ br bool %A, label %brtrue, label %brfalse
+
+ brtrue: ; preds = %brtrue, %entry
+ %B = phi bool [ true, %brtrue ], [ false, %entry ] ; <bool> [#uses=1]
+ call void %use1( int %i )
+ br bool %B, label %brtrue, label %brfalse
+
+ brfalse: ; preds = %brtrue, %entry
+ call void %use1( int %i )
+ ret void
+ }
More information about the llvm-commits
mailing list