[llvm] [VPlan] Add specialized VPValue subclasses for different types (NFC) (PR #172758)

via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 31 16:09:12 PST 2025


================
@@ -3582,10 +3587,10 @@ class VPCanonicalIVPHIRecipe : public VPHeaderPHIRecipe {
                      "scalar phi recipe");
   }
 
+  VPIRValue *getStartValue() const { return cast<VPIRValue>(getOperand(0)); }
----------------
ayalz wrote:

```suggestion
  /// Returns the start value of the induction.
  VPIRValue *getStartValue() const { return cast<VPIRValue>(getOperand(0)); }
```

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


More information about the llvm-commits mailing list