| ▲ | fooker 12 hours ago | ||||||||||||||||||||||||||||||||||
There is a rematerialize pass, there is no real reason to couple it with register allocation. LLVM regalloc is already somewhat subpar. What would be neat is to expose all right knobs and levers so that frontend writers can benchmark a number of possibilities and choose the right values. I can understand this is easier said than done of course. | |||||||||||||||||||||||||||||||||||
| ▲ | pizlonator 12 hours ago | parent [-] | ||||||||||||||||||||||||||||||||||
> 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 | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||