[llvm] [SLP] NFC. ShuffleInstructionBuilder::add V1->getType() is always a (PR #99842)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 22 10:19:12 PDT 2024
================
@@ -12041,6 +12041,8 @@ class BoUpSLP::ShuffleInstructionBuilder final : public BaseShuffleAnalysis {
}
/// Adds 2 input vectors and the mask for their shuffling.
void add(Value *V1, Value *V2, ArrayRef<int> Mask) {
+ assert(isa<FixedVectorType>(V1->getType()));
+ assert(isa<FixedVectorType>(V2->getType()));
----------------
alexey-bataev wrote:
Merge into one and add assertion message
https://github.com/llvm/llvm-project/pull/99842
More information about the llvm-commits
mailing list