Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
need to actually count the ambiguous preds
  • Loading branch information
AndyAyersMS committed Dec 20, 2020
commit 0b22f0fee5c6f8573cdaff2fef7f237919543cff
2 changes: 2 additions & 0 deletions src/coreclr/jit/redundantbranchopts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,13 @@ bool Compiler::optJumpThread(BasicBlock* const block, BasicBlock* const domBlock
// Either both reach, or neither reaches.
//
JITDUMP(FMT_BB " is an ambiguous pred\n", predBlock->bbNum);
numAmbiguousPreds++;
continue;
}

if (predBlock->bbNext == block)
{
JITDUMP(FMT_BB " is a fall-through pred\n", predBlock->bbNum);
assert(fallThroughPred == nullptr);
fallThroughPred = predBlock;
}
Expand Down