There were a few previous code paths that attempted to handle this, but this new check handles it for all callers. Rematerializing constants, rather than assigning and reusing a register, allows for lower register pressure.
This crate contains the core Cranelift code generator. It translates code from an intermediate representation into executable machine code.