[llvm] [SLP] The order of store chains needs to consider the size of the values. (PR #101810)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 03:21:45 PDT 2024


================
@@ -19123,6 +19123,14 @@ bool SLPVectorizerPass::vectorizeStoreChains(BoUpSLP &R) {
     if (V->getPointerOperandType()->getTypeID() >
         V2->getPointerOperandType()->getTypeID())
       return false;
+    if (V->getValueOperand()->getType()->getScalarSizeInBits() <
----------------
alexey-bataev wrote:

Ah, yes. Then there is a question, of why it did not work, because it should work correctly for compatible types

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


More information about the llvm-commits mailing list