[llvm] [VPlan] Rewrite sinkScalarOperands in preparation to extend (PR #151696)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 29 06:04:57 PDT 2025


================
@@ -131,60 +131,63 @@ bool VPlanTransforms::tryToConvertVPInstructionsToVPRecipes(
 }
 
 static bool sinkScalarOperands(VPlan &Plan) {
-  auto Iter = vp_depth_first_deep(Plan.getEntry());
+  bool ScalarVFOnly = Plan.hasScalarVFOnly();
   bool Changed = false;
   // First, collect the operands of all recipes in replicate blocks as seeds for
   // sinking.
   SetVector<std::pair<VPBasicBlock *, VPSingleDefRecipe *>> WorkList;
-  for (VPRegionBlock *VPR : VPBlockUtils::blocksOnly<VPRegionBlock>(Iter)) {
+  for (VPRegionBlock *VPR : VPBlockUtils::blocksOnly<VPRegionBlock>(
+           vp_depth_first_deep(Plan.getEntry()))) {
----------------
fhahn wrote:

this seems an unrelated change

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


More information about the llvm-commits mailing list