This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Force rtl templates to be inlined
- From: David Malcolm <dmalcolm at redhat dot com>
- To: Andi Kleen <andi at firstfloor dot org>
- Cc: gcc-patches at gcc dot gnu dot org, Andi Kleen <ak at linux dot intel dot com>
- Date: Tue, 02 Sep 2014 10:55:43 -0400
- Subject: Re: [PATCH] Force rtl templates to be inlined
- Authentication-results: sourceware.org; auth=none
- References: <1409641427-29875-1-git-send-email-andi at firstfloor dot org>
On Tue, 2014-09-02 at 00:03 -0700, Andi Kleen wrote:
> From: Andi Kleen <ak@linux.intel.com>
>
> I noticed that with the trunk compiler a range of the new rtl
> inlines show up as hot in a profiler during stage1. I think
> that happens because stage1 is not using optimization
> and does not inline plain "inline". And these rtl inlines
> are very frequently called.
Sorry about that.
FWIW I'm working on some followup patches for the rtx-classes work that
ought to eliminate some of the is_a_helper<> calls; I hope to post them
in the next few days. [1]
I suspect the bulk of them currently are coming from the safe_as_a
<rtx_insn *> calls within NEXT_INSN and PREV_INSN; do you happen to have
information handy on that?
Dave
[1] (I have to take the rest of today off for a family matter).