[llvm-commits] patch: teach deadargelim to work on externally visible functions!
Chris Lattner
clattner at apple.com
Mon Jan 4 21:08:05 PST 2010
On Jan 4, 2010, at 5:18 AM, Török Edwin wrote:
>>> It returns false for externalLinkage, yet you can override the symbol
>>> from another shared lib.
>>
>> sure, but then you are invoking undefined behaviour.
>
> If the optimizer already assumes that externalLinkage means no override
> (which is a perfectly reasonable thing to do),
Yes it does.
> then why not do further optimizations based on this assumption, and
> really call the function we see
> (instead of going through the .plt and calling whatever that resolves to
> at runtime).
Can you elaborate?
-Chris
More information about the llvm-commits
mailing list