Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add -unroll-runtime for unrolling loops with run-time trip counts. | Andrew Trick | 2011-12-09 | 1 | -0/+31 |
Patch by Brendon Cahoon! This extends the existing LoopUnroll and LoopUnrollPass. Brendon measured no regressions in the llvm test suite with -unroll-runtime enabled. This implementation works by using the existing loop unrolling code to unroll the loop by a power-of-two (default 8). It generates an if-then-else sequence of code prior to the loop to execute the extra iterations before entering the unrolled loop. llvm-svn: 146245 |