@@ -3083,17 +3083,12 @@ bool Compiler::fgFuncletsAreCold()
30833083//
30843084// Notes:
30853085// Walk the basic blocks list to determine the first block to place in the
3086- // cold section. This would be the first of a series of rarely executed blocks
3086+ // cold section. This would be the first of a series of rarely executed blocks
30873087// such that no succeeding blocks are in a try region or an exception handler
30883088// or are rarely executed.
30893089//
30903090PhaseStatus Compiler::fgDetermineFirstColdBlock ()
30913091{
3092- // Since we may need to create a new transition block
3093- // we assert that it is OK to create new blocks.
3094- //
3095- assert (fgPredsComputed);
3096- assert (fgSafeBasicBlockCreation);
30973092 assert (fgFirstColdBlock == nullptr );
30983093
30993094 if (!opts.compProcedureSplitting )
@@ -3134,15 +3129,6 @@ PhaseStatus Compiler::fgDetermineFirstColdBlock()
31343129
31353130 for (lblk = nullptr , block = fgFirstBB; block != nullptr ; lblk = block, block = block->Next ())
31363131 {
3137- bool blockMustBeInHotSection = false ;
3138-
3139- #if HANDLER_ENTRY_MUST_BE_IN_HOT_SECTION
3140- if (bbIsHandlerBeg (block))
3141- {
3142- blockMustBeInHotSection = true ;
3143- }
3144- #endif // HANDLER_ENTRY_MUST_BE_IN_HOT_SECTION
3145-
31463132 // Make note of if we're in the funclet section,
31473133 // so we can stop the search early.
31483134 if (block == fgFirstFuncletBB)
@@ -3156,7 +3142,7 @@ PhaseStatus Compiler::fgDetermineFirstColdBlock()
31563142 // We have a candidate for first cold block
31573143
31583144 // Is this a hot block?
3159- if (blockMustBeInHotSection || ( block->isRunRarely () == false ))
3145+ if (! block->isRunRarely ())
31603146 {
31613147 // We have to restart the search for the first cold block
31623148 firstColdBlock = nullptr ;
@@ -3195,7 +3181,7 @@ PhaseStatus Compiler::fgDetermineFirstColdBlock()
31953181 }
31963182
31973183 // Is this a cold block?
3198- if (!blockMustBeInHotSection && block->isRunRarely ())
3184+ if (block->isRunRarely ())
31993185 {
32003186 //
32013187 // If the last block that was hot was a BBJ_COND
0 commit comments