[llvm-dev] getting nowhere with thinLTO

Tobias Edler von Koch via llvm-dev llvm-dev at lists.llvm.org
Tue Nov 14 09:26:08 PST 2017

Hi Alan,

On 11/10/2017 11:12 AM, Davis, Alan via llvm-dev wrote:
> For whatever reason in this simple example t3 is not being inlined, 
> but I can set that aside for now.
> // t2.c:
> int t3();

Does inlining happen if you change this to:

int t3(*void*);

Without the void, it's a non-prototype declaration (a pre-ANSI C 
holdover) and will get compiled to "declare void t3(...)". I'm guessing 
you'll see a bitcast at the call site which the inliner can't look through.


Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171114/2594c462/attachment.html>

More information about the llvm-dev mailing list