[llvm-commits] CVS: llvm/test/Regression/Transforms/LoopUnroll/2006-08-24-MultiBlockLoop.ll

Owen Anderson resistor at mac.com
Thu Aug 24 14:28:35 PDT 2006



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

2006-08-24-MultiBlockLoop.ll added (r1.1)
---
Log message:

Implement unrolling of multiblock loops.  This significantly improves the
utility of the LoopUnroll pass.

Also, add a testcase for multiblock-loop unrolling.


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

 2006-08-24-MultiBlockLoop.ll |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+)


Index: llvm/test/Regression/Transforms/LoopUnroll/2006-08-24-MultiBlockLoop.ll
diff -c /dev/null llvm/test/Regression/Transforms/LoopUnroll/2006-08-24-MultiBlockLoop.ll:1.1
*** /dev/null	Thu Aug 24 16:28:29 2006
--- llvm/test/Regression/Transforms/LoopUnroll/2006-08-24-MultiBlockLoop.ll	Thu Aug 24 16:28:19 2006
***************
*** 0 ****
--- 1,18 ----
+ ; RUN: llvm-as < %s | opt -loop-unroll | llvm-dis | grep "bb72.2"
+ 
+ void %vorbis_encode_noisebias_setup() {
+ entry:
+ 	br label %cond_true.outer
+ 
+ cond_true.outer:
+ 	%indvar1.ph = phi uint [ 0, %entry ], [ %indvar.next2, %bb72 ]
+ 	br label %bb72
+ 
+ bb72:
+ 	%indvar.next2 = add uint %indvar1.ph, 1
+ 	%exitcond3 = seteq uint %indvar.next2, 3
+ 	br bool %exitcond3, label %cond_true138, label %cond_true.outer
+ 
+ cond_true138:
+ 	ret void
+ }






More information about the llvm-commits mailing list