mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-11 10:18:21 +09:00
JIT: Skip moving BBJ_COND jump target if fallthrough target is equally likely (#105084)
This commit is contained in:
parent
7cdd2e90db
commit
c70791346c
1 changed files with 7 additions and 0 deletions
|
@ -4536,6 +4536,13 @@ void Compiler::fgMoveHotJumps()
|
|||
targetEdge = block->GetFalseEdge();
|
||||
unlikelyEdge = block->GetTrueEdge();
|
||||
}
|
||||
|
||||
// If we aren't sure which successor is hotter, and we already fall into one of them,
|
||||
// do nothing
|
||||
if ((unlikelyEdge->getLikelihood() == 0.5) && block->NextIs(unlikelyEdge->getDestinationBlock()))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue