Skip to content

Commit

Permalink
JIT: fix issue with partial comp pred list maintenance (#81605)
Browse files Browse the repository at this point in the history
We may have degenerate flow out of a partial compilation block, so make
sure to fully remove the block from all successor pred lists.

Fixes issue seen in #80635.
  • Loading branch information
AndyAyersMS authored Feb 6, 2023
1 parent 29b6a51 commit 211cb69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coreclr/jit/importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6369,7 +6369,8 @@ void Compiler::impImportBlockCode(BasicBlock* block)
//
for (BasicBlock* const succ : block->Succs())
{
fgRemoveRefPred(succ, block);
// We may have degenerate flow, make sure to fully remove
fgRemoveAllRefPreds(succ, block);
}

// Change block to BBJ_THROW so we won't trigger importation of successors.
Expand Down

0 comments on commit 211cb69

Please sign in to comment.