Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyAyersMS committed Oct 15, 2024
1 parent e2cdcd0 commit b7320bd
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/coreclr/jit/optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2881,14 +2881,9 @@ bool Compiler::optCreatePreheader(FlowGraphNaturalLoop* loop)
BasicBlock* const backedgeSource = backEdge->getSourceBlock();
if (!bbInTryRegions(preheaderEHRegion, backedgeSource))
{
if (backedgeSource->hasTryIndex())
{
preheaderEHRegion = backedgeSource->getTryIndex();
}
else
{
preheaderEHRegion = EHblkDsc::NO_ENCLOSING_INDEX;
}
// Preheader should be in the true enclosing region of the header.
//
preheaderEHRegion = ehTrueEnclosingTryIndexIL(preheaderEHRegion);
inSameRegionAsHeader = false;
break;
}
Expand Down

0 comments on commit b7320bd

Please sign in to comment.