[clang] [llvm] [IR] Don't set strictfp on irrelevant calls (PR #122735)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 15 14:10:21 PST 2025
================
@@ -86,6 +86,35 @@ IRBuilderBase::createCallHelper(Function *Callee, ArrayRef<Value *> Ops,
return CI;
}
+CallInst *IRBuilderBase::CreateCall(FunctionType *FTy, Value *Callee,
+ ArrayRef<Value *> Args,
+ ArrayRef<OperandBundleDef> OpBundles,
+ const Twine &Name, MDNode *FPMathTag) {
+ bool CallAccessesFPEnv = false;
+ if (IsFPConstrained) {
+ if (const auto *Func = dyn_cast<Function>(Callee)) {
+ // Some intrinsic functions in non-default FP mode must have FP operand
+ // bundles to indicate a side effect due to read/write FP environment.
----------------
efriedma-quic wrote:
Please remove the reference to "FP operand bundles", since they don't exist at the moment.
https://github.com/llvm/llvm-project/pull/122735
More information about the llvm-commits
mailing list