Uh oh!
There was an error while loading. Please reload this page.
JIT: Add debug consistency checks for GT_RETURN nodes - #125298
Conversation
* add 'If the block contains a GT_RETURN node it should be last.'
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
JulieLeeMSFT
commented
Apr 13, 2026
@BoyBaykiller, please convert this PR to ready for review when you address test failures. |
BoyBaykiller
commented
Apr 13, 2026
I dont see any test failures related to this PR. |
jakobbotsch
commented
Apr 13, 2026
/azp run runtime-coreclr jitstress, runtime-coreclr libraries-jitstress |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Pull request overview
Adds additional debug-time IR consistency validation in the JIT flowgraph diagnostics to ensure GT_RETURN statements appear only in BBJ_RETURN blocks and are positioned as the final statement of such blocks.
Changes:
- Extend
fgDebugCheckStmtsListwith assertions that non-BBJ_RETURNblocks must not containGT_RETURNroots. - Add an assertion that
GT_RETURN(when present in aBBJ_RETURNblock) must be the last statement.
Uh oh!
There was an error while loading. Please reload this page.
jakobbotsch
commented
Apr 14, 2026
/azp run runtime-coreclr jitstress, runtime-coreclr libraries-jitstress |
|
Azure Pipelines successfully started running 2 pipeline(s). |
jakobbotsch
commented
Apr 14, 2026
/azp run runtime-coreclr jitstress |
|
Azure Pipelines successfully started running 1 pipeline(s). |
jakobbotsch
commented
May 11, 2026
/azp run runtime-coreclr jitstress, runtime-coreclr libraries-jitstress |
|
Azure Pipelines successfully started running 2 pipeline(s). |
jakobbotsch
commented
May 13, 2026
/azp run runtime-coreclr jitstress, runtime-coreclr libraries-jitstress |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Makes sure that:
Once #125072 is merged neither of these asserts should fail anymore.