[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/2005-07-07-DeadPHILoop.ll

Chris Lattner lattner at cs.uiuc.edu
Thu Jul 7 13:39:56 PDT 2005



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

2005-07-07-DeadPHILoop.ll added (r1.1)
---
Log message:

New testcase distilled from a large chunk of code Misha sent me.


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

 2005-07-07-DeadPHILoop.ll |   13 +++++++++++++
 1 files changed, 13 insertions(+)


Index: llvm/test/Regression/Transforms/InstCombine/2005-07-07-DeadPHILoop.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/2005-07-07-DeadPHILoop.ll:1.1
*** /dev/null	Thu Jul  7 15:39:55 2005
--- llvm/test/Regression/Transforms/InstCombine/2005-07-07-DeadPHILoop.ll	Thu Jul  7 15:39:45 2005
***************
*** 0 ****
--- 1,13 ----
+ ; RUN: llvm-as < %s | opt -instcombine -disable-output
+ 
+ ; This example caused instcombine to spin into an infinite loop.
+ 
+ void %test(int *%P) {
+ 	ret void
+ Dead:
+ 	%X = phi int [%Y, %Dead]
+ 	%Y = div int %X, 10
+ 	store int %Y, int* %P
+ 	br label %Dead
+ }
+ 






More information about the llvm-commits mailing list