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

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 03:25: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() <
----------------
tcwzxx wrote:

i8 and i64 are not compatible types, but they have the same Type ID, IntegerTyID

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


More information about the llvm-commits mailing list