[clang] [clang] Enable FPContract with optnone (PR #91061)
Serge Pavlov via cfe-commits
cfe-commits at lists.llvm.org
Sun May 5 04:01:27 PDT 2024
================
@@ -968,10 +968,7 @@ class FPOptionsOverride {
setAllowFPContractAcrossStatement();
}
- void setDisallowOptimizations() {
- setFPPreciseEnabled(true);
- setDisallowFPContract();
- }
+ void setDisallowOptimizations() { setFPPreciseEnabled(true); }
----------------
spavloff wrote:
Actually this is done by the call to `setFPPreciseEnabled`: https://github.com/spavloff/llvm-project/blob/e518bbfed9eefbe6d9d952dd0354ee974f7a9305/clang/include/clang/Basic/LangOptions.h#L955-L969
https://github.com/llvm/llvm-project/pull/91061
More information about the cfe-commits
mailing list