[Bug tree-optimization/51065] New: Forwarding functions can be optimized to aliases
rth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 9 17:07:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51065
Bug #: 51065
Summary: Forwarding functions can be optimized to aliases
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rth@gcc.gnu.org
Given a couple of functions
void foo(int x, int y) { ... }
void bar(int x, int y) { foo(x, y}; }
we should take the opportunity, given target support and appropriate
binding of foo and bar, to optimize this to a same_body_alias rather
than merely a sibcall.
More information about the Gcc-bugs
mailing list