aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorDani <daniel.kiss@arm.com>2024-02-25 15:50:05 +0100
committerGitHub <noreply@github.com>2024-02-25 15:50:05 +0100
commit8eb6757564ccea8f9fc3bb75480f1c1d1784415a (patch)
tree538bf9156671d83e9fe73e6f850c8c61700aee60 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent9e7c0b1385baa1acffb62e0589ff100dd972cc0d (diff)
downloadllvm-8eb6757564ccea8f9fc3bb75480f1c1d1784415a.zip
llvm-8eb6757564ccea8f9fc3bb75480f1c1d1784415a.tar.gz
llvm-8eb6757564ccea8f9fc3bb75480f1c1d1784415a.tar.bz2
[NFC] Turn the StrictFP attribute check to a CompatRule. (#82600)
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index 78317df..f68fdb2 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -2103,13 +2103,6 @@ llvm::InlineResult llvm::InlineFunction(CallBase &CB, InlineFunctionInfo &IFI,
BasicBlock *OrigBB = CB.getParent();
Function *Caller = OrigBB->getParent();
- // Do not inline strictfp function into non-strictfp one. It would require
- // conversion of all FP operations in host function to constrained intrinsics.
- if (CalledFunc->getAttributes().hasFnAttr(Attribute::StrictFP) &&
- !Caller->getAttributes().hasFnAttr(Attribute::StrictFP)) {
- return InlineResult::failure("incompatible strictfp attributes");
- }
-
// GC poses two hazards to inlining, which only occur when the callee has GC:
// 1. If the caller has no GC, then the callee's GC must be propagated to the
// caller.