================
@@ -51,10 +51,20 @@ CIRGenFunction::CIRGenFunction(CIRGenModule &cgm, 
CIRGenBuilderTy &builder,
   ehStack.setCGF(this);
   shouldEmitLifetimeMarkers = CodeGenUtils::shouldEmitLifetimeMarkers(
       cgm.getCodeGenOpts(), getContext().getLangOpts());
+  setFastMathFlags(curFPFeatures);
 }
 
 CIRGenFunction::~CIRGenFunction() {}
 
+void CIRGenFunction::setFastMathFlags(FPOptions fpFeatures) {
+  // TODO(cir): set the remaining fast-math flags.
+  assert(!cir::MissingFeatures::fastMathFlags());
+  cir::FastMathFlags flags = cir::FastMathFlags::none;
+  if (fpFeatures.allowFPContractAcrossStatement())
----------------
andykaylor wrote:

No worries. I appreciate that you've implemented it now.

https://github.com/llvm/llvm-project/pull/226334
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to