[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
Mon Aug 5 11:02:15 PDT 2024


================
@@ -19157,6 +19165,10 @@ bool SLPVectorizerPass::vectorizeStoreChains(BoUpSLP &R) {
       return true;
     if (V1->getValueOperand()->getType() != V2->getValueOperand()->getType())
       return false;
+    if (V1->getValueOperand()->getType()->getScalarSizeInBits() !=
+        V2->getValueOperand()->getType()->getScalarSizeInBits()) {
+      return false;
+    }
----------------
tcwzxx wrote:

Ah, yes, it checks the Type, not the TypeID.

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


More information about the llvm-commits mailing list