This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix finding reg-sets of call insn in collect_fn_hard_reg_usage
- From: Richard Henderson <rth at redhat dot com>
- To: Tom de Vries <Tom_deVries at mentor dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 19 Jun 2014 09:40:30 -0700
- Subject: Re: Fix finding reg-sets of call insn in collect_fn_hard_reg_usage
- Authentication-results: sourceware.org; auth=none
- References: <53A30AB7 dot 1060800 at mentor dot com>
On 06/19/2014 09:07 AM, Tom de Vries wrote:
>
> 2014-06-19 Tom de Vries <tom@codesourcery.com>
>
> * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
> get_call_reg_set_usage.
Ok, as far as it goes, but...
It seems like there should be quite a bit of overlap with regs_ever_live here.
How much of that previous computation can we leverage?
It appears that regs_ever_live includes any register mentioned explicitly, and
thus the only registers it doesn't contain are those killed by the callees.
That should be an easier scan than the rtl, since we have those already
collected in the cgraph.
Sorry I wasn't paying much attention earlier when this was first posted, when
questions like this may have been answered.
r~