Skip to content

Commit 1ab9d32

Browse files
AaronRobinsonMSFTmichaelgsharp
authored andcommitted
Remove dead code in PGO scenarios. (dotnet#101648)
1 parent f9fac27 commit 1ab9d32

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/coreclr/vm/jitinterface.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12075,23 +12075,6 @@ HRESULT CEEJitInfo::allocPgoInstrumentationBySchema(
1207512075

1207612076
JIT_TO_EE_TRANSITION();
1207712077

12078-
// We need to know the code size. Typically we can get the code size
12079-
// from m_ILHeader. For dynamic methods, m_ILHeader will be NULL, so
12080-
// for that case we need to use DynamicResolver to get the code size.
12081-
12082-
unsigned codeSize = 0;
12083-
if (m_pMethodBeingCompiled->IsDynamicMethod())
12084-
{
12085-
unsigned stackSize, ehSize;
12086-
CorInfoOptions options;
12087-
DynamicResolver * pResolver = m_pMethodBeingCompiled->AsDynamicMethodDesc()->GetResolver();
12088-
pResolver->GetCodeInfo(&codeSize, &stackSize, &options, &ehSize);
12089-
}
12090-
else
12091-
{
12092-
codeSize = m_ILHeader->GetCodeSize();
12093-
}
12094-
1209512078
#ifdef FEATURE_PGO
1209612079
hr = PgoManager::allocPgoInstrumentationBySchema(m_pMethodBeingCompiled, pSchema, countSchemaItems, pInstrumentationData);
1209712080
#else

0 commit comments

Comments
 (0)