[llvm] Reland "Redesign Straight-Line Strength Reduction (SLSR) (#162930)" (PR #169614)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 26 12:20:11 PST 2025
================
@@ -741,20 +728,30 @@ void StraightLineStrengthReduce::setBasisAndDeltaFor(Candidate &C) {
if (const auto *BaseDeltaCandidates =
CandidateDict.getCandidatesWithDeltaKind(C, Candidate::BaseDelta)) {
- if (SearchFrom(*BaseDeltaCandidates, For(Candidate::BaseDelta))) {
+ if ((C.CandidateKind != Candidate::Mul) &&
----------------
Artem-B wrote:
Why is Mul a special case? A comment would be useful.
https://github.com/llvm/llvm-project/pull/169614
More information about the llvm-commits
mailing list