[PATCH] D25624: Added 'inline' attribute to basic_string's destructor

Mehdi AMINI via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 31 15:43:25 PDT 2016


mehdi_amini added a comment.

In https://reviews.llvm.org/D25624#584095, @hiraditya wrote:

> In https://reviews.llvm.org/D25624#583167, @mehdi_amini wrote:
>
> > I talked with Eric on IRC, he mentioned some benchmarks were ran. I'd like to understand what was the baseline?
> >  Here we add *both* the inline keyword and the always_inline attribute. I'd like to know if there is a benchmarks that shows that always_inline is beneficial on top of the inline keyword. 
> >  If we need to add always_inline anywhere: this is likely an inliner heuristic failure and we should at minima track it as an example to improve it.
>
>
> I remmber that the constructor of std::string wouldn't inline without always_inline attribute https://reviews.llvm.org/D22782


I don't see where is it mentioned in the revision you are linking, can you elaborate what I should look at?


https://reviews.llvm.org/D25624





More information about the cfe-commits mailing list