[llvm] [llvm][AArch64] Do not inline a function with different signing scheme. (PR #80642)

Nick Desaulniers via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 09:47:07 PST 2024


================
@@ -2039,12 +2039,24 @@ static bool checkDenormMode(const Function &Caller, const Function &Callee) {
   return false;
 }
 
+static bool checkStrictFP(const Function &Caller, const Function &Callee) {
+  // Do not inline strictfp function into non-strictfp one. It would require
+  // conversion of all FP operations in host function to constrained intrinsics.
+  return !(Callee.getAttributes().hasFnAttr(Attribute::StrictFP) &&
+           !Caller.getAttributes().hasFnAttr(Attribute::StrictFP));
+}
+
----------------
nickdesaulniers wrote:

Make a separate PR for this? And thanks for cleaning this up!

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


More information about the llvm-commits mailing list