[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
Mon Aug 5 11:06:01 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:

I would suggest to compare getTypeID() rather than size here

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


More information about the llvm-commits mailing list