Function reorder with -fprofile-reorder-functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am experimenting with function reordering using PGO. I am looking at
ordering functions based on the Last time of execution. For example, if the
sequence of calls from profile feedback is:

func1() -> func2() -> func3() -> func1()->func4()

I would like the reordering in the binary as follows:

func2
func3
func1
func4

The closest option I see is -fprofile-reorder-functions but it reorders
based on the first time of execution.

-fprofile-reorder-functions
Function reordering based on profile instrumentation collects first time of
execution of a function and orders these functions in ascending order.

Is there any similar option that can help me achieve this?

Thanks in advance.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux