[llvm] [SLP] Initial vectorization of non-power-of-2 ops. (PR #77790)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 8 13:07:05 PDT 2024
================
@@ -2806,6 +2810,9 @@ class BoUpSLP {
SmallVectorImpl<Value *> *OpScalars = nullptr,
SmallVectorImpl<Value *> *AltScalars = nullptr) const;
+ /// Return true if this is a non-power-of-2 node.
+ bool isNonPowOf2Vec() const { return !isPowerOf2_32(Scalars.size()); }
----------------
alexey-bataev wrote:
What if ReuseShuffleIndices is not empty? Will it work?Can you add a test?
https://github.com/llvm/llvm-project/pull/77790
More information about the llvm-commits
mailing list