Re: Add testcase that we optimize away empty std::vector

2024-11-14 Thread Marek Polacek
On Wed, Nov 13, 2024 at 02:59:05PM +0100, Jan Hubicka wrote: > > On Tue, Nov 12, 2024 at 04:00:03PM +0100, Jan Hubicka wrote: > > > Hi, > > > with __builtin_operator_new we now can optimize away unused std::vectors. > > > This adds testcases mentioned in the PR. > > > > > > Regtested x86_64-linux

Re: Add testcase that we optimize away empty std::vector

2024-11-13 Thread Jan Hubicka
> On Tue, Nov 12, 2024 at 04:00:03PM +0100, Jan Hubicka wrote: > > Hi, > > with __builtin_operator_new we now can optimize away unused std::vectors. > > This adds testcases mentioned in the PR. > > > > Regtested x86_64-linux and comitted. > > > > PR tree-optimization/96945 > > > > gcc/testsu

Re: Add testcase that we optimize away empty std::vector

2024-11-12 Thread Jakub Jelinek
On Tue, Nov 12, 2024 at 04:00:03PM +0100, Jan Hubicka wrote: > Hi, > with __builtin_operator_new we now can optimize away unused std::vectors. > This adds testcases mentioned in the PR. > > Regtested x86_64-linux and comitted. > > PR tree-optimization/96945 > > gcc/testsuite/ChangeLog: >