On 14/11/2019 15:30, Kwok Cheung Yeung wrote:
The set of fixed registers is adjusted by the TARGET_CONDITIONAL_REGISTER_USAGE hook, but this needs to be done on a per-function basis, whereas the hook is normally called once during GCC initialization before any functions have been processed (which means the majority of the current implementation is actually dead code!). I have added a call to reinit_regs in gcn_init_cumulative_args to setup the available registers for each function.

Okay for trunk?

I'm a bit concerned that this sort of thing will break if/when the parallel GCC becomes a thing, but I don't see a better way right now, and we do need this to work.

OK.

Andrew

Reply via email to