[llvm] [VPlan] Make canonical IV part of the region (PR #156262)

via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 22 14:27:44 PDT 2026


================
@@ -3973,6 +3907,11 @@ class VPWidenCanonicalIVRecipe : public VPSingleDefRecipe,
     return 0;
   }
 
+  /// Return the canonical IV being widened.
----------------
ayalz wrote:

Worth noting that this method must be used only when the enclosing loop region is available, as no region value survives afterwards; i.e., the cast will fail.

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


More information about the llvm-commits mailing list