[llvm-commits] CVS: llvm/test/Regression/Transforms/IndVarsSimplify/2004-03-10-PHIInsertionBug.ll

Chris Lattner lattner at cs.uiuc.edu
Wed Mar 10 15:43:02 PST 2004


Changes in directory llvm/test/Regression/Transforms/IndVarsSimplify:

2004-03-10-PHIInsertionBug.ll added (r1.1)

---
Log message:

New testcase for PR284: [indvars] Induction variable analysis violates LLVM invariants


---
Diffs of the changes:  (+27 -0)

Index: llvm/test/Regression/Transforms/IndVarsSimplify/2004-03-10-PHIInsertionBug.ll
diff -c /dev/null llvm/test/Regression/Transforms/IndVarsSimplify/2004-03-10-PHIInsertionBug.ll:1.1
*** /dev/null	Wed Mar 10 15:41:59 2004
--- llvm/test/Regression/Transforms/IndVarsSimplify/2004-03-10-PHIInsertionBug.ll	Wed Mar 10 15:41:47 2004
***************
*** 0 ****
--- 1,27 ----
+ ; RUN: llvm-as < %s | opt -indvars -disable-output
+ 
+ implementation   ; Functions:
+ 
+ void %test() {
+         br label %endif.0.i
+ 
+ endif.0.i:		; preds = %then.0.i
+ 	br bool false, label %then.3.i, label %endif.3.i
+ 
+ then.3.i:		; preds = %endif.0.i
+ 	br label %endif.3.i
+ 
+ endif.3.i:		; preds = %endif.0.i, %then.3.i
+ 	%inxm.0.i = phi int [ 8, %then.3.i ], [ 0, %endif.0.i ]
+ 	%doinner.1.i = phi int [ 0, %then.3.i ], [ 0, %endif.0.i ]
+ 	br label %loopentry.2.i
+ 
+ loopentry.2.i:		; preds = %endif.3.i, %no_exit.2.i
+ 	%inxk.0.i = phi int [ %tmp.210.i, %no_exit.2.i ], [ 0, %endif.3.i ]
+ 	br label %no_exit.2.i
+ 
+ no_exit.2.i:		; preds = %loopentry.2.i
+ 	%tmp.210.i = sub int %inxk.0.i, %inxm.0.i
+ 	%tmp.213.i = add int %tmp.210.i, 0
+ 	br label %loopentry.2.i
+ }





More information about the llvm-commits mailing list