[LLVMdev] Speculative phi elimination at the top of a loop?
devang.patel at gmail.com
Fri Jun 4 10:36:34 PDT 2010
On Fri, Jun 4, 2010 at 5:18 AM, Pekka Nikander
<pekka.nikander at nomadiclab.com> wrote:
> Would the best way be to add an option to -loop-unroll, and hack away at lib/Transforms/Utils/LoopUnroll.cpp?
Instead, the better alternative is to write another pass similar to
LoopUnrollPass.cpp (say LoopPeelPass.cpp) and add new option
-loop-peel. The new pass could use llvm::UnrollLoop() utility
function. Feel free to adjust this utility function if required, but
the core utility function should be used by both passes.
More information about the llvm-dev