u/cxzukin r/ProgrammingLanguages • Recommends
On “After doing it the regular way, I tried creating a proof of concept *reverse* linear scan register allocator”
Hi Teln,
\- handling branches gets more difficult, and from what I see, some sort of live range analysis is still required (defeating the promise of RLSRA to avoid having to compute live ranges).
Yes, [video is a great little tutorial showing the propagating nature of live range analysis. Which is required for branches
Tree Register Allocation \Hongbo Rong's 2009\ https://www.researchgate.net/publication/221005395\_Tree\_register\_allocation is an absolute must read for register allocation - It shows how Local, Hack/SSA, and linear scan are in fact related and presents a generalized allocation subsuming them. Within that paper (and in linear scan) it notes the fix-up stage required to…