Thank you very much! Just a follow-up question regarding IPA. Currently I can follow the tree-profile.c sample to perform IPA. However, my analysis is limited to all functions within one .c file. Is it possible for me to do cross- .c file analysis? That is, suppose there is a function foo in source1.c called function bar in source2.c. How can I cross analyze foo then bar?
Thank you! Best, Shuai On Wed, Feb 17, 2021 at 4:04 PM Martin Liška <mli...@suse.cz> wrote: > On 2/17/21 5:21 AM, Shuai Wang via Gcc wrote: > > Could anyone shed some light on this? Thank you very much! > > Hello. > > I would recommend looking at any of the existing passes: > $ git grep SIMPLE_IPA_PASS > ... > > One reasonable example can be gcc/tree-profile.c. > > Cheers, > Martin >