Conversation
|
Do we actually have consensus on In general, I'm still not sure where all this is going, and whether I agree with the direction. |
|
@rossberg-chromium The argument that convinced me in #299 is that the natural way to transform a CFG into structured control flow is to generate tons of if-break's and switch-break's and so it makes sense to have these available as primitives (less ops to decode and no need to pattern-match to fold branches means faster decoding and better performance for dumb compilers). Also, with |
|
After several offline discussions, I'm now working on a new hybrid proposal that attempts to merge the best of both approaches. I'll open a new PR when the new plan is ready. |
This adds
br_ifandbr_switchto AstSemantics.md, essentially as suggested in #299 . The semantic description here is very brief; for full details see the corresponding spec PR, WebAssembly/spec#131 .