Re: Optimize std::max early

2023-06-19 Thread Richard Biener via Gcc-patches
On Sun, Jun 18, 2023 at 5:55 PM Jan Hubicka via Gcc-patches wrote: > > Hi, > we currently produce very bad code on loops using std::vector as a stack, > since > we fail to inline push_back which in turn prevents SRA and we fail to optimize > out some store-to-load pairs (PR109849). > > I looked i

Optimize std::max early

2023-06-18 Thread Jan Hubicka via Gcc-patches
Hi, we currently produce very bad code on loops using std::vector as a stack, since we fail to inline push_back which in turn prevents SRA and we fail to optimize out some store-to-load pairs (PR109849). I looked into why this function is not inlined and it is inlined by clang. We currently estim