[LLVMbugs] [Bug 19513] New: Avoid using the GOT when calling *_odr functions
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Apr 22 14:05:59 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19513
Bug ID: 19513
Summary: Avoid using the GOT when calling *_odr functions
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
Assignee: unassignedbugs at nondot.org
Reporter: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Given
define linkonce_odr void @bar() {
ret void
}
define void @zed() {
call void @bar()
ret void
}
codegen will produce
callq bar at PLT
Since bar is *_odr, we know it is the same in every translation unit. CodeGen
could produce instead
.hidden bar_alias
bar_alias = bar
...
callq bar_alias
and avoid the PLT indirection.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140422/852d4444/attachment.html>
More information about the llvm-bugs
mailing list