[PATCH] D114886: [LoopUnroll] Disable loop unroll when user explicitly asks for unroll-and-jam

Zaara Syeda via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 1 09:08:47 PST 2021


syzaara created this revision.
syzaara added reviewers: Whitney, bmahjour.
Herald added subscribers: zzheng, hiraditya.
syzaara requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

If a loop isn't forced to be unrolled, we want to avoid unrolling it when there is an explicit unroll-and-jam pragma. 
This is to prevent automatic unrolling from interfering with the user requested transformation.


https://reviews.llvm.org/D114886

Files:
  llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
  llvm/test/Transforms/LoopUnrollAndJam/pragma-disable-unroll.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114886.391018.patch
Type: text/x-patch
Size: 6023 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211201/360be49f/attachment.bin>


More information about the llvm-commits mailing list