[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:15:56 PDT 2022
eopXD marked an inline comment as done.
eopXD added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:6589
+
+ if (!LoopLatch || !LoopPreheader || !SE.hasLoopInvariantBackedgeTakenCount(L))
+ return CantFold;
----------------
mcberg2021 wrote:
> With isLoopSimplifyForm() you do not need to check for LoopLatch and LoopPreheader here, it already does.
Done. Thank you for the tip.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132443/new/
https://reviews.llvm.org/D132443
More information about the llvm-commits
mailing list