[llvm] [SLP]Do not require external uses for roots and single use for other instructions in computeMinimumValueSizes. (PR #72679)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 07:42:45 PST 2024


================
@@ -13078,10 +13078,13 @@ bool BoUpSLP::collectValuesToDemote(Value *V,
     return true;
   }
 
-  // If the value is not a vectorized instruction in the expression with only
-  // one use, it cannot be demoted.
+  // If the value is not a vectorized instruction in the expression and not the
+  // used by the insertelement instruction, it cannot be demoted.
----------------
alexey-bataev wrote:

Missed your comments, for some reason did not get the updates in e-mails.
Fixed this message.

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


More information about the llvm-commits mailing list