[PATCH] D27004: Set unroll remainder to epilog if profitable

Evgeny Stupachenko via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 22 15:16:31 PST 2016


evstupac created this revision.
evstupac added reviewers: mzolotukhin, sanjoy.
evstupac added subscribers: llvm-commits, mzolotukhin, sanjoy, mkuper, Farhana.
evstupac set the repository for this revision to rL LLVM.

Set unroll remainder to epilog if a loop contains phi with constant parameter:

loop:
 pn = phi [Const, PreHeader], [pn.next, Latch]
...

and the Const is modulo of unroll count.


Repository:
  rL LLVM

https://reviews.llvm.org/D27004

Files:
  lib/Transforms/Utils/LoopUnroll.cpp
  test/Transforms/LoopUnroll/runtime-loop5.ll
  test/Transforms/LoopUnroll/unroll-pragmas.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27004.78953.patch
Type: text/x-patch
Size: 5695 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161122/15e7349e/attachment.bin>


More information about the llvm-commits mailing list