[llvm] [VPlan] Delay adding canonical IV increment. (PR #82270)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 13 03:12:20 PST 2024


================
@@ -1820,6 +1776,79 @@ void VPlanTransforms::createInterleaveGroups(
   }
 }
 
+void VPlanTransforms::lowerCanonicalIV(
+    VPlan &Plan, bool HasNUW, bool DataAndControlFlowWithoutRuntimeCheck) {
+  auto *CanIV = Plan.getCanonicalIV();
+
+  VPBasicBlock *EB = Plan.getVectorLoopRegion()->getExitingBasicBlock();
+  auto *Term = EB->getTerminator();
----------------
fhahn wrote:

Updated, thanks

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


More information about the llvm-commits mailing list