From eae5b3daf6412f8b83ceacc6ec8e00dd11a20d91 Mon Sep 17 00:00:00 2001 From: Brian Sullivan Date: Fri, 24 Mar 2017 17:51:47 -0700 Subject: [PATCH] CR feedback Removed assert about BB_NONE Commit migrated from https://github.com/dotnet/coreclr/commit/794c465391dfea71d493889ccd0c0123179720d1 --- src/coreclr/src/jit/flowgraph.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/coreclr/src/jit/flowgraph.cpp b/src/coreclr/src/jit/flowgraph.cpp index 4c414f6..6cd5f3a 100644 --- a/src/coreclr/src/jit/flowgraph.cpp +++ b/src/coreclr/src/jit/flowgraph.cpp @@ -12696,15 +12696,13 @@ void Compiler::fgComputeEdgeWeights() { BasicBlock* firstILBlock = fgFirstBB; // The first block for IL code (i.e. for the IL code at offset 0) - // Did we allocate a scratch block as the new first BB? - if (fgFirstBBisScratch()) + // Do we have an internal block as our first Block? + if (firstILBlock->bbFlags & BBF_INTERNAL) { // Skip past any/all BBF_INTERNAL blocks that may have been added before the first real IL block. - // These internal blocks all should be BBJ_NONE blocks. // while (firstILBlock->bbFlags & BBF_INTERNAL) { - assert(firstILBlock->bbJumpKind == BBJ_NONE); firstILBlock = firstILBlock->bbNext; } // The 'firstILBlock' is now expected to have a profile-derived weight -- 2.7.4