[clang] [llvm] [IR] Don't set strictfp on irrelevant calls (PR #122735)
Serge Pavlov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 14 23:17:45 PST 2025
================
@@ -66,6 +66,12 @@ bool IntrinsicInst::mayLowerToFunctionCall(Intrinsic::ID IID) {
}
}
+bool IntrinsicInst::canAccessFPEnvironment(LLVMContext &C, Intrinsic::ID IID) {
+ AttributeList Attrs = Intrinsic::getAttributes(C, IID);
+ MemoryEffects ME = Attrs.getMemoryEffects();
+ return ME.onlyAccessesInaccessibleMem();
----------------
spavloff wrote:
Yes, fixed, thank you!
https://github.com/llvm/llvm-project/pull/122735
More information about the llvm-commits
mailing list