[llvm] [SLP] Initial support for ordered reductions (PR #182644)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 11 05:24:25 PDT 2026
================
@@ -16279,6 +16279,11 @@ bool BoUpSLP::isTreeTinyAndNotFullyVectorizable(bool ForReduction) const {
return true;
}
+ if (VectorizableTree.size() == 1 && !ForReduction &&
+ VectorizableTree.front()->isGather() &&
+ VectorizableTree.front()->hasState() &&
+ VectorizableTree.front()->getOpcode() == Instruction::ExtractElement)
----------------
alexey-bataev wrote:
The previous or the next? The previous checks do not check for the opcode at all. The next checks for the tree size ==2 and if the tree only contains small extractelement nodes (<4 elements). This one checks for the general case, which may cause hanging for the revectorization attempts
https://github.com/llvm/llvm-project/pull/182644
More information about the llvm-commits
mailing list