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: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Given
define linkonce_odr void @bar() {
ret void
}
define void @zed() {
call void @bar()
ret void
}
codegen will produce
callq bar@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs