Uh oh!
There was an error while loading. Please reload this page.
wasm: order funclets in RPO by funclet index - #130013
Conversation
So the RPO/preorder matches the order funclets are emitted in, keeping the codegen control-flow cursor monotonic. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
AndyAyersMS
commented
Jun 30, 2026
@adamperlin PTAL Fixes some JIT asserts in Pri1 tests where EH clauses require sorting. |
There was a problem hiding this comment.
Pull request overview
Adjusts wasm JIT control-flow layout so funclet ordering in the computed RPO/preorder aligns with the order wasm codegen emits funclets, reducing the chance of mismatches between interval/cursor indexing and physical block traversal.
Changes:
- Sort wasm DFS funclet entry blocks by descending funclet index (so reverse-postorder yields increasing funclet index).
- Add a DEBUG-only verification that the physical
Blocks()order matches assignedbbPreorderNumafter the wasm block reordering.
Uh oh!
There was an error while loading. Please reload this page.
AndyAyersMS
commented
Jun 30, 2026
@adamperlin ping |
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
adamperlin
commented
Jun 30, 2026
The test failures here appear to be unrelated it looks like |
AndyAyersMS
commented
Jun 30, 2026
Most certainly, none of the code touched here gets much testing in CI yet. |
Uh oh!
There was an error while loading. Please reload this page.
Ensure the RPO/preorder matches the funclet emission order. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Ensure the RPO/preorder matches the funclet emission order.