[llvm] [InstSimplify] Defer to ConstantFold in simplifyInstrinsic (PR #205061)

Antonio Frighetto via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 24 06:57:32 PDT 2026


================
@@ -7504,7 +7511,8 @@ static Value *simplifyIntrinsic(CallBase *Call, ArrayRef<Value *> Args,
   }
   default: {
     // Use the default FP environment if none is found.
-    fp::ExceptionBehavior ExBehavior = fp::ebIgnore;
+    fp::ExceptionBehavior ExBehavior =
+        Call->isStrictFP() ? fp::ebStrict : fp::ebIgnore;
----------------
antoniofrighetto wrote:

Is this fixing a pre-existing bug (and is this tested)? Should this be a separate PR?

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


More information about the llvm-commits mailing list