logoalt Hacker News

pizlonatoryesterday at 4:24 PM1 replyview on HN

> 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


Replies

fookeryesterday at 4:38 PM

Remat can produce a performance boost even when everything has a register.

Admittedly, this comes up more often in non-CPU backends.

show 1 reply