[clang] Honor pragmas with -ffp-contract=fast, depecate fast-honor-pragmas (PR #105746)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 22 16:01:32 PDT 2024
================
@@ -348,20 +348,8 @@ static bool initTargetOptions(DiagnosticsEngine &Diags,
.Default(llvm::FloatABI::Default);
// Set FP fusion mode.
- switch (LangOpts.getDefaultFPContractMode()) {
- case LangOptions::FPM_Off:
- // Preserve any contraction performed by the front-end. (Strict performs
- // splitting of the muladd intrinsic in the backend.)
- Options.AllowFPOpFusion = llvm::FPOpFusion::Standard;
- break;
- case LangOptions::FPM_On:
- case LangOptions::FPM_FastHonorPragmas:
- Options.AllowFPOpFusion = llvm::FPOpFusion::Standard;
- break;
- case LangOptions::FPM_Fast:
- Options.AllowFPOpFusion = llvm::FPOpFusion::Fast;
- break;
- }
+ // All allowed fusion is indicated in the IR.
+ Options.AllowFPOpFusion = llvm::FPOpFusion::Standard;
----------------
efriedma-quic wrote:
This is redundant, I think; Standard is the default anyway.
https://github.com/llvm/llvm-project/pull/105746
More information about the cfe-commits
mailing list