summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetInstrInfoImpl.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-12-09 06:19:40 +0000
committerAndrew Trick <atrick@apple.com>2011-12-09 06:19:40 +0000
commitd04d152998a56e3ab266dec7296f72694d34f0c5 (patch)
tree68cc962be087ff117a4f5c674daac02c9d7a5992 /llvm/lib/CodeGen/TargetInstrInfoImpl.cpp
parent5895fa79d62e5b769a64d7668fbc43594479fb82 (diff)
downloadbcm5719-llvm-d04d152998a56e3ab266dec7296f72694d34f0c5.tar.gz
bcm5719-llvm-d04d152998a56e3ab266dec7296f72694d34f0c5.zip
Add -unroll-runtime for unrolling loops with run-time trip counts.
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
Diffstat (limited to 'llvm/lib/CodeGen/TargetInstrInfoImpl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud