Skip to content

Commit bd42165

Browse files
committed
JIT: fix issue with partial comp pred list maintenance
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 dotnet#80635.
1 parent 73f1573 commit bd42165

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/coreclr/jit/importer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6369,7 +6369,8 @@ void Compiler::impImportBlockCode(BasicBlock* block)
63696369
//
63706370
for (BasicBlock* const succ : block->Succs())
63716371
{
6372-
fgRemoveRefPred(succ, block);
6372+
// We may have degenerate flow, make sure to fully remove
6373+
fgRemoveAllRefPreds(succ, block);
63736374
}
63746375

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

0 commit comments

Comments
 (0)