[llvm-commits] CVS: llvm/test/Regression/Transforms/GlobalOpt/2006-11-01-ShrinkGlobalPhiCrash.ll

Chris Lattner sabre at nondot.org
Wed Nov 1 10:03:13 PST 2006



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

2006-11-01-ShrinkGlobalPhiCrash.ll added (r1.1)
---
Log message:

new testcase that crashes global opt, reduced from chomp


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

 2006-11-01-ShrinkGlobalPhiCrash.ll |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+)


Index: llvm/test/Regression/Transforms/GlobalOpt/2006-11-01-ShrinkGlobalPhiCrash.ll
diff -c /dev/null llvm/test/Regression/Transforms/GlobalOpt/2006-11-01-ShrinkGlobalPhiCrash.ll:1.1
*** /dev/null	Wed Nov  1 12:03:03 2006
--- llvm/test/Regression/Transforms/GlobalOpt/2006-11-01-ShrinkGlobalPhiCrash.ll	Wed Nov  1 12:02:53 2006
***************
*** 0 ****
--- 1,33 ----
+ ; RUN: llvm-as < %s | opt -globalopt -disable-output
+ 	%struct._list = type { int*, %struct._list* }
+ 	%struct._play = type { int, int*, %struct._list*, %struct._play* }
+ %nrow = internal global int 0		; <int*> [#uses=2]
+ 
+ implementation   ; Functions:
+ 
+ void %make_play() {
+ entry:
+ 	br label %cond_true16.i
+ 
+ cond_true16.i:		; preds = %cond_true16.i, %entry
+ 	%low.0.in.i.0 = phi int* [ %nrow, %entry ], [ null, %cond_true16.i ]		; <int*> [#uses=1]
+ 	%low.0.i = load int* %low.0.in.i.0		; <int> [#uses=0]
+ 	br label %cond_true16.i
+ }
+ 
+ void %make_wanted() {
+ entry:
+ 	unreachable
+ }
+ 
+ void %get_good_move() {
+ entry:
+ 	ret void
+ }
+ 
+ void %main() {
+ entry:
+ 	store int 8, int* %nrow
+ 	tail call void %make_play( )
+ 	ret void
+ }






More information about the llvm-commits mailing list