From: Brian Sullivan Date: Sat, 25 Mar 2017 00:51:47 +0000 (-0700) Subject: CR feedback X-Git-Tag: submit/tizen/20210909.063632~11030^2~7555^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eae5b3daf6412f8b83ceacc6ec8e00dd11a20d91;p=platform%2Fupstream%2Fdotnet%2Fruntime.git CR feedback Removed assert about BB_NONE Commit migrated from https://github.com/dotnet/coreclr/commit/794c465391dfea71d493889ccd0c0123179720d1 --- 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