[clang] [llvm] Clang/buildFMulAdd: Use negated attribute (PR #121038)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 25 21:56:05 PST 2024
================
@@ -4120,6 +4120,10 @@ static Value* buildFMulAdd(llvm::Instruction *MulOp, Value *Addend,
CGF.CGM.getIntrinsic(llvm::Intrinsic::experimental_constrained_fmuladd,
Addend->getType()),
{MulOp0, MulOp1, Addend});
+ if (negMul)
+ dyn_cast<llvm::CallBase>(FMulAdd)->addParamAttr(0, llvm::Attribute::Negated);
----------------
arsenm wrote:
unchecked dyn_cast
https://github.com/llvm/llvm-project/pull/121038
More information about the llvm-commits
mailing list