[llvm] [VPlan] Add VPRegionBlock::getCanonicalIVType (NFC). (PR #164127)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 31 16:09:03 PDT 2025


================
@@ -2491,8 +2491,9 @@ void VPlanTransforms::addActiveLaneMask(
          "UseActiveLaneMaskForControlFlow");
 
   VPRegionBlock *LoopRegion = Plan.getVectorLoopRegion();
-  auto *FoundWidenCanonicalIVUser = find_if(
-      LoopRegion->getCanonicalIV()->users(), IsaPred<VPWidenCanonicalIVRecipe>);
+  auto *CanonicalIV = LoopRegion->getCanonicalIV();
+  auto *FoundWidenCanonicalIVUser =
+      find_if(CanonicalIV->users(), IsaPred<VPWidenCanonicalIVRecipe>);
----------------
fhahn wrote:

Ah yes, that slipped in as unrelated, removed, thanks

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


More information about the llvm-commits mailing list