diff --git a/src/coreclr/jit/block.h b/src/coreclr/jit/block.h index 25df699d387dd8..c55918689ffe22 100644 --- a/src/coreclr/jit/block.h +++ b/src/coreclr/jit/block.h @@ -1306,7 +1306,7 @@ struct BasicBlock : private LIR::Range bool isBBWeightCold(Compiler* comp) const { - return getBBWeight(comp) < BB_COLD_WEIGHT; + return bbWeight < (getCalledCount(comp) * BB_COLD_WEIGHT); } // Returns "true" if the block is empty. Empty here means there are no statement