[llvm] 9def57a - [VPlan] Remove stale references to VPTypeInfo. (#201088)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 2 03:39:55 PDT 2026


Author: Florian Hahn
Date: 2026-06-02T11:39:50+01:00
New Revision: 9def57af57cc61ebaa83106f056ef3bbc59e0244

URL: https://github.com/llvm/llvm-project/commit/9def57af57cc61ebaa83106f056ef3bbc59e0244
DIFF: https://github.com/llvm/llvm-project/commit/9def57af57cc61ebaa83106f056ef3bbc59e0244.diff

LOG: [VPlan] Remove stale references to VPTypeInfo. (#201088)

VPTypeInfo has been removed, and (#199647) a016f53e2 add dead reference,
causing the build to fail on main.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Removed: 
    


################################################################################
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