[llvm] [VPlan] Give VPInstruction::ExplicitVectorLength name. NFC (PR #175493)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 11 23:31:39 PST 2026
https://github.com/lukel97 created https://github.com/llvm/llvm-project/pull/175493
This makes it a tad easier to read VPlan dumps, e.g.
WIDEN vp.store vp<%7>, ir<%val>, vp<%5>
->
WIDEN vp.store vp<%7>, ir<%val>, vp<%evl>
>From d6a29f95f174c4f33871ae7ee933570245d004cc Mon Sep 17 00:00:00 2001
From: Luke Lau <luke at igalia.com>
Date: Mon, 12 Jan 2026 15:29:25 +0800
Subject: [PATCH] [VPlan] Give VPInstruction::ExplicitVectorLength name. NFC
This makes it a tad easier to read VPlan dumps, e.g.
WIDEN vp.store vp<%7>, ir<%val>, vp<%5>
->
WIDEN vp.store vp<%7>, ir<%val>, vp<%evl>
---
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
index afa74937fc681..cdd1c854d20b4 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -3202,7 +3202,7 @@ void VPlanTransforms::addExplicitVectorLength(
"safe_avl");
}
auto *VPEVL = Builder.createNaryOp(VPInstruction::ExplicitVectorLength, AVL,
- DebugLoc::getUnknown());
+ DebugLoc::getUnknown(), "evl");
auto *CanonicalIVIncrement =
cast<VPInstruction>(CanonicalIVPHI->getBackedgeValue());
More information about the llvm-commits
mailing list