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(ResAddr)) - State.setDebugLocFrom(I->getDebugLoc()); - - State.setDebugLocFrom(getDebugLoc()); Value *PoisonVec = PoisonValue::get(VecTy); auto CreateGroupMask = [&BlockInMask, &State,