[llvm] [SLP]Initial support for copyables in fmuladd intrinsic (PR #211245)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 23 06:20:26 PDT 2026
================
@@ -12227,8 +12245,8 @@ class InstructionsCompatibilityAnalysis {
}))
return OrigS;
// Check profitability if number of copyables > VL.size() / 2.
- // 1. Reorder operands for better matching.
- if (isCommutative(MainOp)) {
+ // 1. Reorder operands for better matching (2-operand ops only).
+ if (!IsFMulAdd && isCommutative(MainOp)) {
----------------
RKSimon wrote:
Use `Operands.size() == 2` to be more generic?
https://github.com/llvm/llvm-project/pull/211245
More information about the llvm-commits
mailing list