[llvm] [SLP] Let the caller tell canConvertToFMA which operand holds the fmul (PR #218754)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 29 12:20:25 PDT 2026
================
@@ -13712,12 +13712,21 @@ bool BoUpSLP::areAllUsersVectorized(
});
}
-static InstructionCost canConvertToFMA(ArrayRef<Value *> VL,
- const InstructionsState &S,
- DominatorTree &DT, const DataLayout &DL,
- TargetTransformInfo &TTI,
- const TargetLibraryInfo &TLI,
- const TTI::TargetCostKind CostKind);
+static InstructionCost
+canConvertToFMA(ArrayRef<Value *> VL, const InstructionsState &S,
+ DominatorTree &DT, const DataLayout &DL,
+ TargetTransformInfo &TTI, const TargetLibraryInfo &TLI,
+ const TTI::TargetCostKind CostKind, unsigned FMulOpIdx = 0);
----------------
alexey-bataev wrote:
Drop default value and handle correctly all calls
https://github.com/llvm/llvm-project/pull/218754
More information about the llvm-commits
mailing list