[llvm] [VPlan] Also duplicated scalar-steps when it enables sinking scalars. (PR #136021)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 18 10:53:16 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
----------------
fhahn wrote:

Done thanks!

https://github.com/llvm/llvm-project/pull/136021


More information about the llvm-commits mailing list