[llvm] [SLP]Buildvector for alternate instructions with non-profitable gather operands. (PR #84978)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 12 14:47:13 PDT 2024


================
@@ -6074,6 +6194,14 @@ BoUpSLP::TreeEntry::EntryState BoUpSLP::getScalarsVectorizationState(
       LLVM_DEBUG(dbgs() << "SLP: ShuffleVector are not vectorized.\n");
       return TreeEntry::NeedToGather;
     }
+    if (!areAltOperandsProfitable(S, VL)) {
----------------
alexey-bataev wrote:

Feel free to prepare the patch

https://github.com/llvm/llvm-project/pull/84978


More information about the llvm-commits mailing list