3 ms·
Phi functions are a syntactical hack which can be avoided by allowing a basic block that would contain a "phi function" to instead take parameters (similar to t
by zozbot123 8y ago
Phi functions are a syntactical hack which can be avoided by allowing a basic block that would contain a "phi function" to instead take parameters (similar to the ANF representation). It's a lot more principled than the "phi" hack, but still quite simple and intuitive.
- abecedarius 8y agoI saw somewhere a short paper presenting a syntax to write programs in essentially SSA directly, which I think was sort of like that, but it's not coming up in a quick search. I'd thought it was by Anton Ertl. FWIW, I used this idea (extended basic blocks are functions with m arguments and n results) in https://github.com/darius/idel https://github.com/darius/idel with a Forth-like syntax back in 2001.