CR feedback
authorBrian Sullivan <briansul@microsoft.com>
Sat, 25 Mar 2017 00:51:47 +0000 (17:51 -0700)
committerBrian Sullivan <briansul@microsoft.com>
Sat, 25 Mar 2017 00:51:47 +0000 (17:51 -0700)
Removed assert about BB_NONE

src/jit/flowgraph.cpp

index 4c414f6..6cd5f3a 100644 (file)
@@ -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