[PATCH] Decrease compile time memory with heavy find_base_{value,term} on i?86/x86_64 (PR rtl-optimization/63191)

Jakub Jelinek jakub@redhat.com
Fri Mar 10 18:57:00 GMT 2017

On Fri, Mar 10, 2017 at 07:52:37PM +0100, Bernd Schmidt wrote:
> On 03/10/2017 06:53 PM, Jakub Jelinek wrote:
> > +
> > +template <bool base_term_p>
> > +static inline rtx
> > +ix86_delegitimize_address_tmpl (rtx x)
> >  {
> Why is this a template and not a function arg?

That was just an attempt to ensure that the compiler actually
either inlines it, or doesn't share code between the two versions, so the
base_term_p argument isn't checked at runtime.
But, as I said, I have no problem changing that, i.e.
remove the template line, s/_tmpl/_1/, add , bool base_term_p
and tweak both callers.


More information about the Gcc-patches mailing list