This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Early inlining and function references from static const struct (bug?)


On February 5, 2016 3:27:17 PM GMT+01:00, Carlos Pita <carlosjosepita@gmail.com> wrote:
>> I was saying that early inlining is not supposed to catch this case
>> but IPA inlining.
>> it shouldn't need to inline g early to end up inlining the calls to
>sq.  IPA CP
>> should clone g for the case of it calling sq and then inlining should
>> just do its job.
>
>Ok, I fully agree with that, forcing early inlining to trigger late
>inlining is just a workaround. But there is still the fact that ipa
>inlining is indeed inlining the compound literal case (despite ipa cp
>failing there) while it's unable to inline the static const case that,
>as I understand it, you don't seem to consider a missed oportunity for
>ipa cp. So say you fix the "aggregate D.1772" scenario, I guess it
>won't change anything regarding ipa inlining.

No, I thought it would inline that anyway...

Richard.

>Cheers
>--
>Carlos



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]