[llvm] [SLP] Match poison as instruction with the same opcode (PR #115946)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 25 09:46:29 PST 2024


alexey-bataev wrote:

> We're hitting an assert after this:
> 
> ```
> llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:10881: InstructionCost llvm::slpvectorizer::BoUpSLP::ShuffleCostEstimator::finalize(ArrayRef<int>, ArrayRef<std::pair<const TreeEntry *, unsigned int>>, ArrayRef<int>, unsigned int, function_ref<void (Value *&, SmallVectorImpl<int> &)>): Assertion `SubVectorsMask.size() == CommonMask.size() && "Expected same size of masks for subvectors and common mask."' failed.
> ```
> 
> See https://crbug.com/380805017#comment4 for a reproducer. Can you please take a look?

Looking, will fix ASAP

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


More information about the llvm-commits mailing list