[cfe-dev] missing optimization opportunity for const std::vector compared to std::array
Dennis Luehring
dl.soluz at gmx.net
Thu Jun 5 03:53:43 PDT 2014
Am 05.06.2014 12:33, schrieb Gabriel Dos Reis:
> >...
> >GCC's codegen could be improved. However, Clang's appears to be a little
> >be too eager and potentially non-legit. E.g. it is legit if that
> >translation unit is the only unit of the entire program. However, it isn't
> >if that translation unit was linked with another unit providing a
> >replacement for 'operator new'. This is something that LTO could handle
> >very well.
what i do not understand is why an operator new call insider of libc++
isn't remove
and such super small examples are handled (maybe too eager) - are there
different analyse routes
in clang for removing operator new - why - shouldn't that be the same code?
More information about the cfe-dev
mailing list