public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Hongtao Liu <crazylht@gmail.com>
To: Ezhil P <ezhil.college@gmail.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: Machine dependent optimization
Date: Mon, 28 Feb 2022 13:30:33 +0800	[thread overview]
Message-ID: <CAMZc-bytnLOXdxprPux8Dzmmj+_8iox4g5DAsGfrj=fQ5WO19A@mail.gmail.com> (raw)
In-Reply-To: <CAFFxOEKNxrb006eRPFBGRrMq3Wse1TK+602VnSKw6k=UmthKmQ@mail.gmail.com>

On Sun, Feb 27, 2022 at 9:29 AM Ezhil P via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
>
> Hi,
> I understand that Machine independent optimizations happen in the middle
> end of GCC and machine dependent optimizations happen in the back end of
> GCC.
>
> Can you please list few machine dependent optimization relevant for x-86
> processor architecture?
You can take a look at pass_insert_vzeroupper, pass_stv, and etc..

27  INSERT_PASS_AFTER (pass_reload, 1, pass_insert_vzeroupper);
28  INSERT_PASS_AFTER (pass_combine, 1, pass_stv, false /* timode_p */);
29  /* Run the 64-bit STV pass before the CSE pass so that CONST0_RTX and
30     CONSTM1_RTX generated by the STV pass can be CSEed.  */
31  INSERT_PASS_BEFORE (pass_cse2, 1, pass_stv, true /* timode_p */);
32
33  INSERT_PASS_BEFORE (pass_shorten_branches, 1,
pass_insert_endbr_and_patchable_area);
34
35  INSERT_PASS_AFTER (pass_combine, 1, pass_remove_partial_avx_dependency);




-- 
BR,
Hongtao

      reply	other threads:[~2022-02-28  5:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-27  1:28 Ezhil P
2022-02-28  5:30 ` Hongtao Liu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMZc-bytnLOXdxprPux8Dzmmj+_8iox4g5DAsGfrj=fQ5WO19A@mail.gmail.com' \
    --to=crazylht@gmail.com \
    --cc=ezhil.college@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).