[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
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:
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...
More information about the llvm-dev