[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
Sun Sep 13 14:16:18 PDT 2026
================
@@ -16694,9 +16698,11 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
InstructionCost ScalarCost = TTI->getArithmeticInstrCost(
ShuffleOrOp, OrigScalarTy, CostKind, Op1Info, Op2Info, Operands);
if (auto *I = dyn_cast<Instruction>(UniqueValues[Idx]);
- I && (ShuffleOrOp == Instruction::FAdd ||
- ShuffleOrOp == Instruction::FSub)) {
- InstructionCost IntrinsicCost = GetFMulAddCost(E->getOperations(), I);
+ I && !E->isCopyableElement(I) &&
----------------
alexey-bataev wrote:
Why copyables are excluded?
https://github.com/llvm/llvm-project/pull/218754
More information about the llvm-commits
mailing list