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.