[clang] [llvm] Minimal support of floating-point operand bundles (PR #135658)

Serge Pavlov via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 22 11:12:51 PDT 2025


================
@@ -1092,7 +1092,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy,
   if ((FD && (FD->UsesFPIntrin() || FD->hasAttr<StrictFPAttr>())) ||
       (!FD && (FPExceptionBehavior != llvm::fp::ebIgnore ||
                RM != llvm::RoundingMode::NearestTiesToEven))) {
-    Builder.setIsFPConstrained(true);
+    Builder.setIsFPConstrained(true, false);
----------------
spavloff wrote:

In addition to `setIsFPConstrained`, which keeps original signature, a method `resetModeToStrictFP(bool IsCon)` is added, which also resets IRBuilder's FP properties.

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


More information about the cfe-commits mailing list