public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/AWS/heads/Arm64/gcc-7-branch)] [AArch64] Enable compare branch fusion
@ 2020-10-01 16:37 Sebastian Pop
  0 siblings, 0 replies; only message in thread
From: Sebastian Pop @ 2020-10-01 16:37 UTC (permalink / raw)
  To: gcc-cvs

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

commit a91f4d0515f67f0a5b1b9b7c154778a9bc5c82d4
Author: Wilco Dijkstra <wdijkstr@arm.com>
Date:   Fri Jan 17 14:27:14 2020 +0000

    [AArch64] Enable compare branch fusion
    
    Enable the most basic form of compare-branch fusion since various CPUs
    support it. This has no measurable effect on cores which don't support
    branch fusion, but increases fusion opportunities on cores which do.
    
    2020-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
    
    gcc/
            * config/aarch64/aarch64.c (generic_tunings): Add branch fusion.
            (neoversen1_tunings): Likewise.
    
    (cherry picked from commit 6ed8c923325c9b2fcb30996fa14582ac136d9329)

Diff:
---
 gcc/config/aarch64/aarch64.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index ca21ae842cc..05eaef3d2e6 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -536,7 +536,7 @@ static const struct tune_params generic_tunings =
   &generic_approx_modes,
   4, /* memmov_cost  */
   2, /* issue_rate  */
-  (AARCH64_FUSE_AES_AESMC), /* fusible_ops  */
+  (AARCH64_FUSE_AES_AESMC | AARCH64_FUSE_CMP_BRANCH), /* fusible_ops  */
   8,	/* function_align.  */
   8,	/* jump_align.  */
   4,	/* loop_align.  */
@@ -817,7 +817,7 @@ static const struct tune_params neoversen1_tunings =
   &generic_approx_modes,
   4, /* memmov_cost  */
   3, /* issue_rate  */
-  AARCH64_FUSE_AES_AESMC, /* fusible_ops  */
+  (AARCH64_FUSE_AES_AESMC | AARCH64_FUSE_CMP_BRANCH), /* fusible_ops  */
   32,	/* function_align.  */
   4,	/* jump_align.  */
   32,	/* loop_align.  */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-01 16:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-01 16:37 [gcc(refs/vendors/AWS/heads/Arm64/gcc-7-branch)] [AArch64] Enable compare branch fusion Sebastian Pop

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).