aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Tebbs <samuel.tebbs@arm.com>2025-07-22 16:40:49 +0100
committerSamuel Tebbs <samuel.tebbs@arm.com>2025-07-22 16:40:49 +0100
commit0b93c24b8798b289b4e01498e2209262dd25a426 (patch)
treeb3755c3f36fbfe6a71a2f676dc3a7748834065bb
parent64aa25f1c11a79b45063eb1a4cfbcb6bad5fa05e (diff)
downloadllvm-users/SamTebbs33/sub-reductions.zip
llvm-users/SamTebbs33/sub-reductions.tar.gz
llvm-users/SamTebbs33/sub-reductions.tar.bz2
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index c6b21c0..f7641c02 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -9036,8 +9036,8 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
Type *PhiTy = PhiR->getUnderlyingValue()->getType();
auto *Zero = Plan->getOrAddLiveIn(ConstantInt::get(PhiTy, 0));
VPWidenRecipe *Sub = new VPWidenRecipe(
- Instruction::Sub, {Zero, CurrentLink->getOperand(1)}, {}, VPIRMetadata(),
- CurrentLinkI->getDebugLoc());
+ Instruction::Sub, {Zero, CurrentLink->getOperand(1)}, {},
+ VPIRMetadata(), CurrentLinkI->getDebugLoc());
Sub->setUnderlyingValue(CurrentLinkI);
LinkVPBB->insert(Sub, CurrentLink->getIterator());
VecOp = Sub;