> In AutoFDO, a basic block's count can be much larger than it's actual
> count because debug info might be incorrect. In this case, a call edge
> count (calculated from BB count) could be much larger than callee's
> header count, making the count_scale incorrectly large.

In this case I still think we should handle this when producing the clone:
we do not want to have clone's count much larger as well, so i think inliner
and ipa-cp needs to deal with capping here instead....

Honza
> 
> Dehao
> >
> >
> > Honza

Reply via email to