On 2014-04-23, 6:41 AM, Tom de Vries wrote:
On 22-04-14 17:05, Tom de Vries wrote:
I've updated the fuse-caller-save patch series to model non-callee
call clobbers
in CALL_INSN_FUNCTION_USAGE.
Vladimir,
This is the updated version of the previously approved patch
http://gcc.gnu.org/ml/gcc-patches/2013-03/msg01320.html , updated for
the new hook call_fusage_contains_non_callee_clobbers.
The only difference is in the functions get_call_reg_set_usage and
collect_fn_hard_reg_usage which use the hook.
OK for trunk?
2013-04-29 Radovan Obradovic <robrado...@mips.com>
Tom de Vries <t...@codesourcery.com>
* cgraph.h (struct cgraph_node): Add function_used_regs,
function_used_regs_initialized and function_used_regs_valid fields.
* final.c: Move include of hard-reg-set.h to before rtl.h to declare
find_all_hard_reg_sets.
(collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_node)
(get_call_reg_set_usage): New function.
(rest_of_handle_final): Use collect_fn_hard_reg_usage.
It looks ok for me, Tom. But to be straight I am not a maintainer for
this part of the compiler. So it is just my recommendation. I guess to
get an approval for these changes, you should ask Jan Hubicka (cgraph.h)
or a global or RTL reviewer for final.c.