[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 11:06:47 PDT 2022


eopXD updated this revision to Diff 455293.
eopXD marked an inline comment as done.
eopXD added a comment.

Only perform transformation and set `Changed` to true when the SCEV is safe to expand.


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132443.455293.patch
Type: text/x-patch
Size: 19075 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220824/39d6da4d/attachment-0001.bin>


More information about the llvm-commits mailing list