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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 15 07:00:20 PST 2026


================
@@ -189,6 +203,22 @@ class LLVM_ABI_FOR_TEST VPValue {
   }
 };
 
+/// VPValues defined by a VPRegionBlock, like the canonical IV.
+struct VPRegionValue : public VPValue {
+  VPRegionValue(VPRegionBlock *Region) : VPValue(VPValue::VPRegionValueSC) {
+    DefiningRegion = Region;
+  }
+
+  ~VPRegionValue() override = default;
+
+  /// Returns the region that defines this value.
+  VPRegionBlock *getDefiningRegion() const { return DefiningRegion; }
+
+  static inline bool classof(const VPValue *V) {
----------------
fhahn wrote:

This should be taken care of, after merging VPValue refactoring.

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


More information about the llvm-commits mailing list