[llvm] [VPlan] Add specialized VPValue subclasses for different types (NFC) (PR #172758)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 28 08:07:33 PST 2025
================
@@ -3582,7 +3585,7 @@ class VPCanonicalIVPHIRecipe : public VPHeaderPHIRecipe {
/// Returns the scalar type of the induction.
Type *getScalarType() const {
- return getStartValue()->getLiveInIRValue()->getType();
+ return cast<VPLiveIn>(getStartValue())->getValue()->getType();
----------------
fhahn wrote:
Updated, specialized getStartValue and made start value in the constructor also VPLiveIn
https://github.com/llvm/llvm-project/pull/172758
More information about the llvm-commits
mailing list