* Basic block reordering in GCC
[not found] <1639728976.88326.1596605267334.ref@mail.yahoo.com>
@ 2020-08-05 5:27 ` Mahmood Naderan
2020-08-05 20:57 ` Jim Wilson
0 siblings, 1 reply; 2+ messages in thread
From: Mahmood Naderan @ 2020-08-05 5:27 UTC (permalink / raw)
To: gcc-help
Hi,
Is it possible to modify the basic block reordering algorithm to call the next BB from another function? From what I have seen in -freorder-blocks and -freorder-blocks-algorithm and -freorder-fucntion, it seems that BBs are reordered inside functions, a.k.a intra-function reordering, and not between fucntions, a.k.a inter-functions.
Any nore on that?
Regards,
Mahmood
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Basic block reordering in GCC
2020-08-05 5:27 ` Basic block reordering in GCC Mahmood Naderan
@ 2020-08-05 20:57 ` Jim Wilson
0 siblings, 0 replies; 2+ messages in thread
From: Jim Wilson @ 2020-08-05 20:57 UTC (permalink / raw)
To: Mahmood Naderan; +Cc: gcc-help
On Tue, Aug 4, 2020 at 10:29 PM Mahmood Naderan via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
> Is it possible to modify the basic block reordering algorithm to call the next BB from another function? From what I have seen in -freorder-blocks and -freorder-blocks-algorithm and -freorder-fucntion, it seems that BBs are reordered inside functions, a.k.a intra-function reordering, and not between fucntions, a.k.a inter-functions.
> Any nore on that?
Putting code from one function inside another function would seriously
complicate a lot of stuff, and probably break some stuff too. There
is a -freorder-blocks-and-partition option that can move hot blocks to
a special hot section and cold blocks to a special cold section. But
there are a number of cases where it gets automatically disabled, e.g.
in the presence of exception handling, if the function has a section
attribute, etc. See the docs for the full list.
Jim
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-05 20:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1639728976.88326.1596605267334.ref@mail.yahoo.com>
2020-08-05 5:27 ` Basic block reordering in GCC Mahmood Naderan
2020-08-05 20:57 ` Jim Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).