[PATCH] D140698: [LoopUnroll] Be more permissive to high-cost loop trip count SCEV's

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 27 09:16:30 PST 2022


lebedev.ri created this revision.
lebedev.ri added reviewers: reames, mkazantsev, nikic.
lebedev.ri added a project: LLVM.
Herald added subscribers: zzheng, hiraditya.
Herald added a project: All.
lebedev.ri requested review of this revision.

Loop unroll's loop trip count expansion is optionally
guarded by a 'cheap expansion budget' cut-off.
Unlike the loop ind var simplification, here,
if we do unroll the loop, it's usually beneficial,
so it's generally justified to deal with a slightly
more costly loop trip counts.

Alternative to D139858 <https://reviews.llvm.org/D139858>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140698

Files:
  llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
  llvm/test/Transforms/LoopUnroll/X86/high-cost-expansion.ll
  llvm/test/Transforms/LoopUnroll/high-cost-trip-count-computation.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140698.485384.patch
Type: text/x-patch
Size: 8612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221227/4be65d38/attachment.bin>


More information about the llvm-commits mailing list