This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RFC: IPACP function cloning without LTO
- From: Dinar Temirbulatov <dtemirbulatov at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 6 Mar 2013 16:00:52 +0400
- Subject: RFC: IPACP function cloning without LTO
Hi,
The current implementation of IPACP doesn't allowed to clone function
if caller(s) to that function is located in another object. Of course,
no such problems if we could utilized LTO. And it is very interesting
to have such functionality of compiler even without LTO. It could be
changed, if for example we could call to the cloned instance of that
function from the original instance of function in the function
prolog:
Here is what I mean:
int func(int a, .....)
{
if (a==some_constant)
func.constprop.0(....);
thanks, Dinar.