[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
================
@@ -229,8 +244,8 @@ VPTransformState::VPTransformState(const TargetTransformInfo *TTI,
CurrentParentLoop(CurrentParentLoop), TypeAnalysis(*Plan), VPDT(*Plan) {}
Value *VPTransformState::get(const VPValue *Def, const VPLane &Lane) {
- if (Def->isLiveIn())
- return Def->getLiveInIRValue();
+ if (isa<VPLiveIn, VPSymbolicValue>(Def))
+ return Def->getUnderlyingValue();
----------------
fhahn wrote:
Yes, we need to move all places that currently set the underlying value for VPSymbolicValue to RAUW prior to codegen, but that can be done independently.
https://github.com/llvm/llvm-project/pull/172758
More information about the llvm-commits
mailing list