[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:35 PST 2025
================
@@ -7419,9 +7422,10 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
// making any changes to the CFG.
DenseMap<const SCEV *, Value *> ExpandedSCEVs =
VPlanTransforms::expandSCEVs(BestVPlan, *PSE.getSE());
- if (!ILV.getTripCount())
- ILV.setTripCount(BestVPlan.getTripCount()->getLiveInIRValue());
- else
+ if (!ILV.getTripCount()) {
+ // After expandSCEVs, TripCount is always a VPLiveIn.
+ ILV.setTripCount(cast<VPLiveIn>(BestVPlan.getTripCount())->getValue());
+ } else
----------------
fhahn wrote:
updated thanks
https://github.com/llvm/llvm-project/pull/172758
More information about the llvm-commits
mailing list