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).
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.