[llvm] [VPlan] Remove stale references to VPTypeInfo. (PR #201088)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 2 03:39:38 PDT 2026
https://github.com/fhahn created https://github.com/llvm/llvm-project/pull/201088
VPTypeInfo has been removed, and (#199647) a016f53e2 add dead reference, causing the build to fail on main.
>From e3cbe21593bd7ab1610d8b071323c49f77f53765 Mon Sep 17 00:00:00 2001
From: Florian Hahn <flo at fhahn.com>
Date: Tue, 2 Jun 2026 11:37:08 +0100
Subject: [PATCH] [VPlan] Remove stale references to VPTypeInfo.
VPTypeInfo has been removed, and (#199647) a016f53e2 add dead
reference, causing the build to fail on main.
---
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
index c38a5b9279db9..6d0e1c6c1a509 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -7025,9 +7025,8 @@ void VPlanTransforms::convertToStridedAccesses(VPlan &Plan,
// Create the base pointer of strided access.
VPValue *StartVPV = vputils::getOrCreateVPValueForSCEVExpr(Plan, Start);
VPValue *StrideInBytes = Plan.getOrAddLiveIn(Step->getValue());
- Type *IndexTy =
- Plan.getDataLayout().getIndexType(TypeInfo.inferScalarType(Ptr));
- assert(IndexTy == TypeInfo.inferScalarType(StrideInBytes) &&
+ Type *IndexTy = Plan.getDataLayout().getIndexType(Ptr->getScalarType());
+ assert(IndexTy == StrideInBytes->getScalarType() &&
"Stride type from SCEV must match the index type");
VPValue *CanIVTyStride = Builder.createScalarSExtOrTrunc(
StrideInBytes, VectorLoop->getCanonicalIVType(), IndexTy,
More information about the llvm-commits
mailing list