[llvm] 9871ad1 - [VPlan] Rename DataLayout -> DL
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 18 08:13:44 PDT 2026
Author: Luke Lau
Date: 2026-03-18T23:13:19+08:00
New Revision: 9871ad1c8a54a4772877622d82ea05d29c1a94bd
URL: https://github.com/llvm/llvm-project/commit/9871ad1c8a54a4772877622d82ea05d29c1a94bd
DIFF: https://github.com/llvm/llvm-project/commit/9871ad1c8a54a4772877622d82ea05d29c1a94bd.diff
LOG: [VPlan] Rename DataLayout -> DL
To fix the buildbot failure in https://lab.llvm.org/buildbot/#/builders/97/builds/12155
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
llvm/lib/Transforms/Vectorize/VPlanAnalysis.h
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp b/llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
index cdc095442650a..234534a52ce36 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
@@ -25,7 +25,7 @@ using namespace VPlanPatternMatch;
#define DEBUG_TYPE "vplan"
VPTypeAnalysis::VPTypeAnalysis(const VPlan &Plan)
- : Ctx(Plan.getContext()), DataLayout(Plan.getDataLayout()) {
+ : Ctx(Plan.getContext()), DL(Plan.getDataLayout()) {
if (auto LoopRegion = Plan.getVectorLoopRegion()) {
if (const auto *CanIV = dyn_cast<VPCanonicalIVPHIRecipe>(
&LoopRegion->getEntryBasicBlock()->front())) {
@@ -125,7 +125,7 @@ Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPInstruction *R) {
case VPInstruction::LastActiveLane:
// Assume that the maximum possible number of elements in a vector fits
// within the index type for the default address space.
- return DataLayout.getIndexType(Ctx, 0);
+ return DL.getIndexType(Ctx, 0);
case VPInstruction::LogicalAnd:
case VPInstruction::LogicalOr:
assert(inferScalarType(R->getOperand(0))->isIntegerTy(1) &&
diff --git a/llvm/lib/Transforms/Vectorize/VPlanAnalysis.h b/llvm/lib/Transforms/Vectorize/VPlanAnalysis.h
index fa9ca6b3a40d9..bdb24abc05dbb 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanAnalysis.h
+++ b/llvm/lib/Transforms/Vectorize/VPlanAnalysis.h
@@ -47,7 +47,7 @@ class VPTypeAnalysis {
/// count).
Type *CanonicalIVTy;
LLVMContext &Ctx;
- const DataLayout &DataLayout;
+ const DataLayout &DL;
Type *inferScalarTypeForRecipe(const VPBlendRecipe *R);
Type *inferScalarTypeForRecipe(const VPInstruction *R);
More information about the llvm-commits
mailing list