Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
need to set up the lookup table differently
  • Loading branch information
AndyAyersMS committed Oct 4, 2021
commit 302d2bc4cfc14029614d59459be7aa1028c11996
8 changes: 4 additions & 4 deletions src/coreclr/jit/fgbasic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3539,6 +3539,10 @@ void Compiler::fgFindBasicBlocks()
//
void Compiler::fgFixEntryFlowForOSR()
{
// Ensure lookup IL->BB lookup table is valid
//
fgInitBBLookup();

// Remember the original entry block in case this method is tail recursive.
//
fgEntryBB = fgLookupBB(0);
Expand All @@ -3561,10 +3565,6 @@ void Compiler::fgFixEntryFlowForOSR()

JITDUMP("OSR: redirecting flow at entry from entry " FMT_BB " to OSR entry " FMT_BB " for the importer\n",
fgFirstBB->bbNum, osrEntry->bbNum);

// rebuild lookup table... we may be able to avoid this by leaving room up front.
//
fgInitBBLookup();
}

/*****************************************************************************
Expand Down