[clang] [CIR] Record -ffp-contract=fast as a per-op contract flag (PR #226334)
David Rivera via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 25 13:51:56 PDT 2026
================
@@ -1468,6 +1483,8 @@ CIRGenFunction::CIRGenFPOptionsRAII::~CIRGenFPOptionsRAII() {
cgf.curFPFeatures = oldFPFeatures;
cgf.builder.setDefaultConstrainedExcept(oldExcept);
cgf.builder.setDefaultConstrainedRounding(oldRounding);
+ if (restoredFastMathFlags)
+ cgf.builder.setFastMathFlags(oldFastMathFlags);
----------------
RiverDave wrote:
Great suggestion, I've added these on: clang/test/CIR/CodeGen/fp-contract.c
https://github.com/llvm/llvm-project/pull/226334
More information about the cfe-commits
mailing list