[llvm] [VPlan] Remove redundant debug location setting in VPInterleaveRecipe::execute. nfc (PR #146670)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 03:55:39 PDT 2025
https://github.com/Mel-Chen created https://github.com/llvm/llvm-project/pull/146670
Remove it since we already set debug loc in VPBasicBlock::executeRecipes.
>From 8bd144c13ba6f6fabab0186d517dacd499ee08c2 Mon Sep 17 00:00:00 2001
From: Mel Chen <mel.chen at sifive.com>
Date: Wed, 2 Jul 2025 03:41:31 -0700
Subject: [PATCH] NFC, Remove setDebugLocFrom
---
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp | 4 ----
1 file changed, 4 deletions(-)
diff --git a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
index 24f2d6a83c5e4..1375193181fbc 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -3425,10 +3425,6 @@ void VPInterleaveRecipe::execute(VPTransformState &State) {
VPValue *Addr = getAddr();
Value *ResAddr = State.get(Addr, VPLane(0));
- if (auto *I = dyn_cast<Instruction>(ResAddr))
- State.setDebugLocFrom(I->getDebugLoc());
-
- State.setDebugLocFrom(getDebugLoc());
Value *PoisonVec = PoisonValue::get(VecTy);
auto CreateGroupMask = [&BlockInMask, &State,
More information about the llvm-commits
mailing list