aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-05-11 20:53:41 +0000
committerDan Gohman <gohman@apple.com>2007-05-11 20:53:41 +0000
commit2980d9da45645fd6cc0114ef72c5cc0ae4bf8142 (patch)
tree48a579c469c5e49de1c99cbdd621e1b21ad1e40b /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent600db3eb9644769aedb96280299ca2091da43b3d (diff)
downloadllvm-2980d9da45645fd6cc0114ef72c5cc0ae4bf8142.zip
llvm-2980d9da45645fd6cc0114ef72c5cc0ae4bf8142.tar.gz
llvm-2980d9da45645fd6cc0114ef72c5cc0ae4bf8142.tar.bz2
This patch extends the LoopUnroll pass to be able to unroll loops
with unknown trip counts. This is left off by default, and a command-line option enables it. It also begins to separate loop unrolling into a utility routine; eventually it might be made usable from other passes. It currently works by inserting conditional branches between each unrolled iteration, unless it proves that the trip count is a multiple of a constant integer > 1, which it currently only does in the rare case that the trip count expression is a Mul operator with a ConstantInt operand. Eventually this information might be provided by other sources, for example by a pass that peels/splits the loop for this purpose. llvm-svn: 36990
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions