Re: Unimpressed with pg_attribute_always_inline - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: Unimpressed with pg_attribute_always_inline
Date
Msg-id CAH2-Wzm+RH=-SGpZsu+4y0JDj_RQDUbJSvfP13NAzjm90WpAtw@mail.gmail.com
Whole thread Raw
In response to Re: Unimpressed with pg_attribute_always_inline  (Andres Freund <andres@anarazel.de>)
Responses Re: Unimpressed with pg_attribute_always_inline
List pgsql-hackers
On Mon, Jan 8, 2018 at 4:22 PM, Andres Freund <andres@anarazel.de> wrote:
>> Isn't that an argument against inlining in general, rather than
>> forcing inlining in particular?
>
> No. Normal 'inline' annotation doesn't do anything on -O0 / debug
> builds. But always_inline does, even though the goal of the usage is
> just to override the compiler's inlining heuristics.

Sorry, I found the way this was discussed confusing.

Anyway, ISTM that it should be possible to make
pg_attribute_always_inline have no effect in typical debug builds.
Wouldn't that make everyone happy?

-- 
Peter Geoghegan


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Unimpressed with pg_attribute_always_inline
Next
From: Tom Lane
Date:
Subject: Re: Unimpressed with pg_attribute_always_inline