This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: IPACP function cloning without LTO
On Wed, Mar 6, 2013 at 1:00 PM, Dinar Temirbulatov
<dtemirbulatov@gmail.com> wrote:
> 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(....);
The only reasonable way to do this is add value-profiles for incoming arguments
and thus require profile-feedback.
Richard.
> thanks, Dinar.