[llvm] [SLP][REVEC] Make reorderTopToBottom support ShuffleVectorInst. (PR #117310)
Han-Kuan Chen via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 22 03:09:00 PST 2024
================
@@ -6005,10 +6005,12 @@ void BoUpSLP::reorderTopToBottom() {
if ((TE->State == TreeEntry::Vectorize ||
TE->State == TreeEntry::StridedVectorize) &&
isa<ExtractElementInst, ExtractValueInst, LoadInst, StoreInst,
- InsertElementInst>(TE->getMainOp())) {
+ InsertElementInst, ShuffleVectorInst>(TE->getMainOp())) {
assert(!TE->isAltShuffle() &&
"Alternate instructions are only supported by BinaryOperator "
"and CastInst.");
+ assert(!isa<ShuffleVectorInst>(TE->getMainOp()) ||
+ SLPReVec && "Only supported by REVEC.");
----------------
HanKuanChen wrote:
How does the TreeEntry has `ShuffleVectorInst` as Scalars without REVEC? `ShuffleVectorInst` returns vector.
https://github.com/llvm/llvm-project/pull/117310
More information about the llvm-commits
mailing list