[llvm-commits] CVS: llvm/test/Regression/Transforms/IndVarsSimplify/2003-09-12-MultiplePred.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri Sep 12 11:43:01 PDT 2003
Changes in directory llvm/test/Regression/Transforms/IndVarsSimplify:
2003-09-12-MultiplePred.ll added (r1.1)
---
Log message:
New testcase, this should be simplified
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/IndVarsSimplify/2003-09-12-MultiplePred.ll
diff -c /dev/null llvm/test/Regression/Transforms/IndVarsSimplify/2003-09-12-MultiplePred.ll:1.1
*** /dev/null Fri Sep 12 11:42:26 2003
--- llvm/test/Regression/Transforms/IndVarsSimplify/2003-09-12-MultiplePred.ll Fri Sep 12 11:42:16 2003
***************
*** 0 ****
--- 1,12 ----
+ ; RUN: llvm-as < %s | opt -indvars | dis | grep indvar
+
+ int %test() {
+ br bool true, label %LoopHead, label %LoopHead
+
+ LoopHead:
+ %A = phi int [0, %0], [0, %0], [%B, %LoopHead]
+ %B = add int %A, 1
+ br bool false, label %LoopHead, label %Out
+ Out:
+ ret int %B
+ }
More information about the llvm-commits
mailing list