]> git.ipfire.org Git - thirdparty/gcc.git/commit
-fuse-caller-save - Collect register usage information
authorRadovan Obradovic <robradovic@mips.com>
Wed, 28 May 2014 09:43:11 +0000 (09:43 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 28 May 2014 09:43:11 +0000 (09:43 +0000)
commit27c07cc5d06c0f74d147c14c6a4b0b071266e774
treeadc9457c04ab6c4cb81a5e67f444ea92a7ebf3e8
parentca48e5efaee333309fcc62c9afbc65b7d5952d3d
-fuse-caller-save - Collect register usage information

2014-05-28  Radovan Obradovic  <robradovic@mips.com>
            Tom de Vries  <tom@codesourcery.com>

* cgraph.h (struct cgraph_rtl_info): Add function_used_regs
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_rtl_info)
(get_call_reg_set_usage): New function.
(rest_of_handle_final): Use collect_fn_hard_reg_usage.
* regs.h (get_call_reg_set_usage): Declare.

Co-Authored-By: Tom de Vries <tom@codesourcery.com>
From-SVN: r211006
gcc/ChangeLog
gcc/cgraph.h
gcc/final.c
gcc/regs.h