[PATCH] D132443: [LSR] Fold terminal condition to other IV when possible

Yueh-Ting (eop) Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 24 10:08:56 PDT 2022


eopXD updated this revision to Diff 455265.
eopXD added a comment.

Since LSR is used on many targets, adding this transformation will affect many
testcases and it will make this patch hard to review. For now we can open up
an option for the added transformation and only observe on the middle-end
test-cases.

After this patch lands, we can then go on and create a TTI to allow reviewers
from each target to see they want this transformation in their backend.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132443/new/

https://reviews.llvm.org/D132443

Files:
  llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
  llvm/test/Transforms/LoopStrengthReduce/lsr-fold-iv-complicate-add-rec.ll
  llvm/test/Transforms/LoopStrengthReduce/lsr-fold-iv-const-tripcount.ll
  llvm/test/Transforms/LoopStrengthReduce/lsr-fold-iv-negative-testcase.ll
  llvm/test/Transforms/LoopStrengthReduce/lsr-fold-iv-runtime-tripcount.ll
  llvm/test/Transforms/LoopStrengthReduce/opaque-ptr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132443.455265.patch
Type: text/x-patch
Size: 20565 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220824/1134a513/attachment.bin>


More information about the llvm-commits mailing list