> The hook is called right after expansion of calls, and allows a target to do > additional processing, such as f.i. adding clobbers to > CALL_INSN_FUNCTION_USAGE. > > Instead of using the hook, we could add code to the preparation statements > operand of the different call expands, but that requires those expands not > to use the rtl template, and generate all the rtl through c code. Which > requires a rewrite of the call expands in case of Aarch64.
If Aarch64 is the only problematic back-end, then it should be changed to do what the other back-ends already do to use use_reg. IMO adding such a bogus hook should be the very last resort solution. -- Eric Botcazou