summaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2025-11-13 22:34:55 +0000
committerFlorian Hahn <flo@fhahn.com>2025-11-13 22:34:55 +0000
commita6edeedbfa308876d6f2b1648729d52970bb07e6 (patch)
tree6d2ea5f14cb1b9225c345ab74276b7fe9b02d609 /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
parent79cd1b7a25cdbf42c7234999ae9bc51db30af1f0 (diff)
Revert "[LV] Use ExtractLane(LastActiveLane, V) live outs when tail-folding. (#149042)"
This reverts commit 62d1a080e69e3c5e98840e000135afa7c688a77b. This appears to be causing some runtime failures on RISCV https://lab.llvm.org/buildbot/#/builders/210/builds/5221
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index f4629d22002d..83844287adc5 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -8893,8 +8893,7 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
if (FinalReductionResult == U || Parent->getParent())
continue;
U->replaceUsesOfWith(OrigExitingVPV, FinalReductionResult);
- if (match(U, m_CombineOr(m_ExtractLastElement(m_VPValue()),
- m_ExtractLane(m_VPValue(), m_VPValue()))))
+ if (match(U, m_ExtractLastElement(m_VPValue())))
cast<VPInstruction>(U)->replaceAllUsesWith(FinalReductionResult);
}