regalloc.rs
regalloc.rs copied to clipboard
Interface: allow specifying certain basic blocks as cold
Basic block frequencies are currently estimated using loop depth, but sometimes the front-end knows certain code paths are almost never taken (e.g. error handling). It would be useful to be able to communicate this to the register allocator.