Skip to content

Commit

Permalink
Remove dead code in PGO scenarios. (#101649)
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron R Robinson <arobins@microsoft.com>
  • Loading branch information
github-actions[bot] and AaronRobinsonMSFT committed May 2, 2024
1 parent 37a6d07 commit 144fc61
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/coreclr/vm/jitinterface.cpp
Expand Up @@ -11881,23 +11881,6 @@ HRESULT CEEJitInfo::allocPgoInstrumentationBySchema(

JIT_TO_EE_TRANSITION();

// We need to know the code size. Typically we can get the code size
// from m_ILHeader. For dynamic methods, m_ILHeader will be NULL, so
// for that case we need to use DynamicResolver to get the code size.

unsigned codeSize = 0;
if (m_pMethodBeingCompiled->IsDynamicMethod())
{
unsigned stackSize, ehSize;
CorInfoOptions options;
DynamicResolver * pResolver = m_pMethodBeingCompiled->AsDynamicMethodDesc()->GetResolver();
pResolver->GetCodeInfo(&codeSize, &stackSize, &options, &ehSize);
}
else
{
codeSize = m_ILHeader->GetCodeSize();
}

#ifdef FEATURE_PGO
hr = PgoManager::allocPgoInstrumentationBySchema(m_pMethodBeingCompiled, pSchema, countSchemaItems, pInstrumentationData);
#else
Expand Down

0 comments on commit 144fc61

Please sign in to comment.