未验证 提交 31036fea 编写于 作者: K Kunal Pathak 提交者: GitHub

Update lpFirst and lpTop to reflect accurate compacted blocks (#51033)

* include first and top in compacting

* Convert to assert

* Revert "Convert to assert"

This reverts commit 7da1a8c7d910ad00bbc7b40314997f70960729a5.
上级 c377f415
......@@ -1996,6 +1996,20 @@ void Compiler::fgUpdateLoopsAfterCompacting(BasicBlock* block, BasicBlock* bNext
{
optLoopTable[loopNum].lpEntry = block;
}
/* Check the loop's first block */
if (optLoopTable[loopNum].lpFirst == bNext)
{
optLoopTable[loopNum].lpFirst = block;
}
/* Check the loop top */
if (optLoopTable[loopNum].lpTop == bNext)
{
optLoopTable[loopNum].lpTop = block;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册