Overview of regalloc2
mainregalloc2 is a register allocator implemented in Rust. It originated as a port of IonMonkey's backtracking register allocator but has since been generalized, optimized, and improved. It includes extensive testing infrastructure, such as fuzzing harnesses and checkers, which were not present in the original IonMonkey allocator.
For a deep dive into the allocator's mechanics, refer to the design overview.