[clang-tools-extra] r248438 - Fix loop-convert for trivially copyable types.

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 28 08:10:12 PDT 2015


On Sat, Sep 26, 2015 at 11:21 PM, Manuel Klimek via cfe-commits <
cfe-commits at lists.llvm.org> wrote:

> Yep. We'll make it better by limiting the size, but trivially copyable is
> an improvement, as there are orders of magnitude more loops over small
> copyable types than over large ones.
>

We seem to be growing repeated logic for these rules in many checks
(suggesting pass by value, loop convert, maybe others) - could we
centralize these rules somewhere so we apply consistent logic in all of
them? (& call out any necessary variation there)


>
> On Sat, Sep 26, 2015, 9:02 PM comex <comexk at gmail.com> wrote:
>
>> On Thu, Sep 24, 2015 at 7:28 AM, Manuel Klimek via cfe-commits
>> <cfe-commits at lists.llvm.org> wrote:
>> > Fix loop-convert for trivially copyable types.
>>
>> If I'm not misunderstanding the patch, "trivially copyable" by itself
>> seems like a suboptimal test.  After all, "trivial" can still include
>> an expensive memcpy of a large struct.
>>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150928/66076b3c/attachment.html>


More information about the cfe-commits mailing list