[PATCH] Allow CodeGen to take advantage of functions that always return arguments
Chris Lattner
clattner at apple.com
Wed Apr 24 17:51:39 PDT 2013
On Apr 19, 2013, at 10:21 PM, Stephen Lin <swlin at post.harvard.edu> wrote:
>>
>> Thanks.
>>
>> Stephen,
>>
>> The patch didn't apply cleanly. Someone has updated lib/CodeGen/Analysis.cpp. Could you regen your patch? I'll apply it once you send it. :)
>>
>> -bw
>>
>
> Committed as r179925, with additional test for ms-cxx-abi on x86_64
> 'this'-returns.
>
> Clang patch forthcoming (should be relatively trivial).
Cool. Have you considered having clang add this attribute for memcpy/memset/strcat and other well known library functions?
-Chris
More information about the llvm-commits
mailing list