http://llvm.org/bugs/show_bug.cgi?id=17919
Bug ID: 17919
Summary: LLVM should be able to replace a unnamed_addr wrapper
function with the callee
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Interprocedural Optimizations
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
given
define linkonce_odr void @foo() unnamed_addr {
call void @bar()
ret void
}
llvm has no issues inlining and deleting foo. If we use a pointer to foo on the
other hand, llvm is not able to replace it with bar.
Clang has a spacial case for this when a destructor in a base class is
identical to one in the derived class. With this optimization implemented in
llvm we could probably drop the special case from clang.
--
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