Skip to content

Commit

Permalink
Remove BB epoch quirk
Browse files Browse the repository at this point in the history
  • Loading branch information
amanasifkhalid committed Nov 21, 2024
1 parent 03bc39f commit aa70517
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/coreclr/jit/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4921,15 +4921,6 @@ void Compiler::compCompile(void** methodCodePtr, uint32_t* methodCodeSize, JitFl

if (doLoopHoisting)
{
if (doBranchOpt)
{
// bbNum quirk: RBO uses the current BB epoch size to determine if loop hoisting created blocks.
// Ensure the BB epoch is up to date before running loop hoisting to avoid false positives.
// TODO-bbNum: Either replace this check with a breadcrumb like 'fgModified',
// or relax jump threading's prerequisites.
EnsureBasicBlockEpoch();
}

// Hoist invariant code out of loops
//
DoPhase(this, PHASE_HOIST_LOOP_CODE, &Compiler::optHoistLoopCode);
Expand Down

0 comments on commit aa70517

Please sign in to comment.