[llvm] [VPlan] Update scalar induction resume values in VPlan. (PR #110577)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 1 14:06:53 PST 2024
================
@@ -2652,26 +2658,31 @@ static Value *getExpandedStep(const InductionDescriptor &ID,
return I->second;
}
-void InnerLoopVectorizer::createInductionResumeValues(
+void InnerLoopVectorizer::createInductionResumeVPValues(
const SCEV2ValueTy &ExpandedSCEVs,
std::pair<BasicBlock *, Value *> AdditionalBypass) {
assert(((AdditionalBypass.first && AdditionalBypass.second) ||
(!AdditionalBypass.first && !AdditionalBypass.second)) &&
"Inconsistent information about additional bypass.");
// We are going to resume the execution of the scalar loop.
- // Go over all of the induction variables that we found and fix the
- // PHIs that are left in the scalar version of the loop.
- // The starting values of PHI nodes depend on the counter of the last
- // iteration in the vectorized loop.
- // If we come from a bypass edge then we need to start from the original
+ // Go over all of the induction variables in the scalar header and fix the
+ // PHIs that are left in the scalar version of the loop. The starting values
+ // of PHI nodes depend on the counter of the last iteration in the vectorized
+ // loop. If we come from a bypass edge then we need to start from the original
// start value.
----------------
fhahn wrote:
Updated, thanks
https://github.com/llvm/llvm-project/pull/110577
More information about the llvm-commits
mailing list