public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Wilco Dijkstra <wilco@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-1015] AArch64: Enable fast shifts on Neoverse N1
Date: Mon, 24 May 2021 14:01:02 +0000 (GMT)	[thread overview]
Message-ID: <20210524140102.C8023385802D@sourceware.org> (raw)

https://gcc.gnu.org/g:b326f495218a213079f572bd9960903b3425da74

commit r12-1015-gb326f495218a213079f572bd9960903b3425da74
Author: Wilco Dijkstra <wdijkstr@arm.com>
Date:   Mon May 24 14:31:37 2021 +0100

    AArch64: Enable fast shifts on Neoverse N1
    
    Enable the fast shift feature in Neoverse N1 tuning - this means additions with
    a shift left by 1-4 are as fast as addition. This improves multiply by constant
    expansions, eg. x * 25 is now emitted using shifts rather than a multiply:
    
    add w0, w0, w0, lsl 2
    add w0, w0, w0, lsl 2
    
    ChangeLog:
    2020-09-11  Wilco Dijkstra  <wdijkstr@arm.com>
    
            * config/aarch64/aarch64.c (neoversen1_tunings):
            Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.

Diff:
---
 gcc/config/aarch64/aarch64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index e9f961d41fa..2753c852abd 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -1659,7 +1659,7 @@ static const struct tune_params neoversen1_tunings =
   2,	/* min_div_recip_mul_df.  */
   0,	/* max_case_values.  */
   tune_params::AUTOPREFETCHER_WEAK,	/* autoprefetcher_model.  */
-  (AARCH64_EXTRA_TUNE_NONE),	/* tune_flags.  */
+  (AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND),	/* tune_flags.  */
   &generic_prefetch_tune
 };


                 reply	other threads:[~2021-05-24 14:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20210524140102.C8023385802D@sourceware.org \
    --to=wilco@gcc.gnu.org \
    --cc=gcc-cvs@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).