[llvm-commits] CVS: llvm/test/Regression/Transforms/LICM/sink_critical_edge.ll

Chris Lattner lattner at cs.uiuc.edu
Tue Dec 9 16:06:01 PST 2003


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

sink_critical_edge.ll added (r1.1)

---
Log message:

Add a new testcase which breaks the sinker because the loop canonnicalization
pass does not do a canonnicalization that the sinker wants. 


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

Index: llvm/test/Regression/Transforms/LICM/sink_critical_edge.ll
diff -c /dev/null llvm/test/Regression/Transforms/LICM/sink_critical_edge.ll:1.1
*** /dev/null	Tue Dec  9 16:05:18 2003
--- llvm/test/Regression/Transforms/LICM/sink_critical_edge.ll	Tue Dec  9 16:05:08 2003
***************
*** 0 ****
--- 1,19 ----
+ ; This testcase checks to make sure the sinker does not cause problems with
+ ; critical edges.
+ 
+ ; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 add | grep Exit
+ 
+ implementation   ; Functions:
+ 
+ void %test() {
+ Entry:
+ 	br bool false, label %Loop, label %Exit
+ 
+ Loop:
+ 	%X = add int 0, 1
+ 	br bool false, label %Loop, label %Exit
+ 
+ Exit:
+ 	%Y = phi int [ 0, %Entry ], [ %X, %Loop ]
+ 	ret void
+ }





More information about the llvm-commits mailing list