@@ -2103,28 +2103,14 @@ void Compiler::fgTailMergeThrowsFallThroughHelper(BasicBlock* predBlock,
21032103 assert (predBlock->KindIs (BBJ_COND));
21042104 assert (predBlock->FalseTargetIs (nonCanonicalBlock));
21052105
2106- BasicBlock* const newBlock = fgNewBBafter (BBJ_ALWAYS, predBlock, true );
2107-
2108- JITDUMP (" *** " FMT_BB " now falling through to empty " FMT_BB " and then to " FMT_BB " \n " , predBlock->bbNum ,
2109- newBlock->bbNum , canonicalBlock->bbNum );
2106+ JITDUMP (" *** " FMT_BB " false target is now " FMT_BB " \n " , predBlock->bbNum , canonicalBlock->bbNum );
21102107
21112108 // Remove the old flow
21122109 fgRemoveRefPred (predEdge);
21132110
21142111 // Wire up the new flow
2115- FlowEdge* const falseEdge = fgAddRefPred (newBlock , predBlock, predEdge);
2112+ FlowEdge* const falseEdge = fgAddRefPred (canonicalBlock , predBlock, predEdge);
21162113 predBlock->SetFalseEdge (falseEdge);
2117-
2118- FlowEdge* const newEdge = fgAddRefPred (canonicalBlock, newBlock, predEdge);
2119- newBlock->SetTargetEdge (newEdge);
2120-
2121- // If nonCanonicalBlock has only one pred, all its flow transfers.
2122- // If it has multiple preds, then we need edge counts or likelihoods
2123- // to figure things out.
2124- //
2125- // For now just do a minimal update.
2126- //
2127- newBlock->inheritWeight (nonCanonicalBlock);
21282114}
21292115
21302116// ------------------------------------------------------------------------
0 commit comments