Tag
A blog write-up of a full linear scan register allocator implemented in Datalog, co-developed with Yannis Smaragdakis at PLDI, demonstrating both where Datalog excels (liveness, basic blocks) and where it struggles (sequential interval eviction, forall emulation).
A deep-dive debugging writeup showing how antcc's -O2 pessimization made a Lua benchmark 1.4x slower than the unoptimized build, tracing the 2.4x code-size blowup in luaV_execute past inlining heuristics and IR expansion into instruction selection and register allocation.
The author of the 'rat' compiler backend describes replacing a 1392-line linear scan register allocator with a 584-line priority bin-packing allocator in the family of LLVM's greedy allocator, which produces better code and naturally keeps call-crossing values in callee-saved registers.
This 2011 mailing list thread discusses compiler challenges in optimizing interpreter loops and how LuaJIT2 achieves better performance through assembly-level techniques like fixed register assignment.