[clang] clang: Add pragma clang fp reciprocal (PR #68267)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 6 12:21:52 PDT 2023


================
@@ -1309,6 +1309,13 @@ void Sema::ActOnPragmaFPReassociate(SourceLocation Loc, bool IsEnabled) {
   CurFPFeatures = NewFPFeatures.applyOverrides(getLangOpts());
 }
 
+void Sema::ActOnPragmaFPReciprocal(SourceLocation Loc, bool IsEnabled) {
----------------
andykaylor wrote:

There's some discussion of it here: https://reviews.llvm.org/D122155

The basic idea is that it doesn't make sense to allow value-changing optimizations while also specifying extra precision to be used for intermediate calculations.

https://github.com/llvm/llvm-project/pull/68267


More information about the cfe-commits mailing list