> There is a rematerialize pass, there is no real reason to couple it with register allocation
The reason to couple it to regalloc is that you only want to remat if it saves you a spill
Remat can produce a performance boost even when everything has a register.
Admittedly, this comes up more often in non-CPU backends.
Remat can produce a performance boost even when everything has a register.
Admittedly, this comes up more often in non-CPU backends.