Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Bogatov <egorbo@gmail.com>2022-02-18 01:36:15 +0300
committerGitHub <noreply@github.com>2022-02-18 01:36:15 +0300
commitd1f4d238089c5f5a6ea36e1bcd828e5d15557f3f (patch)
tree889b5c477272cfb2e0a8db91985358f5843a9a0d /src/coreclr/jit/inlinepolicy.cpp
parent09b6149f10526acc7b8b2401ca0cc618dce34913 (diff)
Move IsKnownConstant handling to ExtendedDefaultPolicy (#64809)
Diffstat (limited to 'src/coreclr/jit/inlinepolicy.cpp')
-rw-r--r--src/coreclr/jit/inlinepolicy.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/coreclr/jit/inlinepolicy.cpp b/src/coreclr/jit/inlinepolicy.cpp
index 0ea9135b82c..dafb34f8781 100644
--- a/src/coreclr/jit/inlinepolicy.cpp
+++ b/src/coreclr/jit/inlinepolicy.cpp
@@ -735,15 +735,6 @@ double DefaultPolicy::DetermineMultiplier()
JITDUMP("\nInline candidate has arg that feeds range check. Multiplier increased to %g.", multiplier);
}
- if (m_ConstArgFeedsIsKnownConst || (m_ArgFeedsIsKnownConst && m_IsPrejitRoot))
- {
- // if we use RuntimeHelpers.IsKnownConstant we most likely expect our function to be always inlined
- // at least in the case of constant arguments. In IsPrejitRoot we don't have callsite info so let's
- // assume we have a constant here in order to avoid "baked" noinline
- multiplier += 20;
- JITDUMP("\nConstant argument feeds RuntimeHelpers.IsKnownConstant. Multiplier increased to %g.", multiplier);
- }
-
if (m_ConstantArgFeedsConstantTest > 0)
{
multiplier += 3.0;