[llvm] 39daa55 - AArch64: Drop AllowFPOpFusion from isProfitableToHoist (#221402)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 7 02:59:42 PDT 2026
Author: Matt Arsenault
Date: 2026-09-07T11:59:37+02:00
New Revision: 39daa556ccaa69f6a2db45f414f33fad128e5d48
URL: https://github.com/llvm/llvm-project/commit/39daa556ccaa69f6a2db45f414f33fad128e5d48
DIFF: https://github.com/llvm/llvm-project/commit/39daa556ccaa69f6a2db45f414f33fad128e5d48.diff
LOG: AArch64: Drop AllowFPOpFusion from isProfitableToHoist (#221402)
Added:
Modified:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 71e29b6852772..9c8f8b76f8512 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -18974,15 +18974,13 @@ bool AArch64TargetLowering::isProfitableToHoist(Instruction *I) const {
User->getOpcode() == Instruction::FAdd))
return true;
- const TargetOptions &Options = getTargetMachine().Options;
const Function *F = I->getFunction();
const DataLayout &DL = F->getDataLayout();
Type *Ty = User->getOperand(0)->getType();
return !(isFMAFasterThanFMulAndFAdd(*F, Ty) &&
isOperationLegalOrCustom(ISD::FMA, getValueType(DL, Ty)) &&
- (Options.AllowFPOpFusion == FPOpFusion::Fast ||
- I->getFastMathFlags().allowContract()));
+ I->getFastMathFlags().allowContract());
}
// All 32-bit GPR operations implicitly zero the high-half of the corresponding
More information about the llvm-commits
mailing list