[LLVMbugs] [Bug 6747] New: missed optimization for inline virtual methods
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Mar 30 20:57:02 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=6747
Summary: missed optimization for inline virtual methods
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Given the translation unit
struct foo {
virtual void bar();
virtual void baz() {}
};
void zed() {
foo b;
b.baz();
}
we currently produce
define linkonce_odr void @_ZN3foo3bazEv
it should probably be available_externally. Given that the function is virtual
and we know we will have a vtable in some other translation unit, we can
produce this one as available_externally.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list