[PATCH] D107381: [runtimeunroll] Support multiple exits to latch exit w/epilogue loop

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 3 11:28:23 PDT 2021


reames created this revision.
reames added reviewers: anna, fhahn.
Herald added subscribers: zzheng, bollu, hiraditya, mcrosier.
reames requested review of this revision.
Herald added a project: LLVM.

This patch extends the runtime unrolling infrastructure to support unrolling a loop with multiple exiting blocks branching to the same exit block used by the latch.  It intentionally does not include a cost model change to enable this functionality unless appropriate force flags are used.

I decided to restrict this to the epilogue case.  Given the changes ended up being pretty generic, we may be able to unblock the prolog case too, but I want to do that in a separate change to reduce the amount of code we all have to understand at one time.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107381

Files:
  llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
  llvm/test/Transforms/LoopUnroll/runtime-loop-multiple-exits.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107381.363816.patch
Type: text/x-patch
Size: 115935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210803/bf077ded/attachment-0001.bin>


More information about the llvm-commits mailing list