[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
Tue Aug 23 00:53:30 PDT 2022


eopXD created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
eopXD requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

LSR may optimize the loop such that the IV of the terminal condition is
solely used as the temerminal condition. We can imporve on this when
other existing IV is AddRec and can replace the terminal condition.


Repository:
  rG LLVM Github Monorepo

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-runtime-tripcount.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132443.454725.patch
Type: text/x-patch
Size: 23017 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220823/8ec79433/attachment.bin>


More information about the llvm-commits mailing list