[llvm] [VPlan] Also duplicated scalar-steps when it enables sinking scalars. (PR #136021)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 19 09:32:31 PDT 2025
================
@@ -163,18 +163,25 @@ static bool sinkScalarOperands(VPlan &Plan) {
if (UI->getParent() == SinkTo)
return true;
NeedsDuplicating = UI->onlyFirstLaneUsed(SinkCandidate);
- // We only know how to duplicate VPRecipeRecipes for now.
- return NeedsDuplicating && isa<VPReplicateRecipe>(SinkCandidate);
+ // We only know how to duplicate VPRecipeRecipes and
+ // VPScalarIVStepsRecipes for now.
----------------
ayalz wrote:
Optimized considering only first lane is used, as in turning replicate recipe to be uniform.
https://github.com/llvm/llvm-project/pull/136021
More information about the llvm-commits
mailing list