[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 11:48:34 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:

Hi Valery, you can add this option in the downstream compiler, should not be a very big change.

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


More information about the llvm-commits mailing list