From patchwork Wed Sep 15 08:09:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Pan2 via Gcc-patches" X-Patchwork-Id: 45010 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1EEA83857C7A for ; Wed, 15 Sep 2021 08:10:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1EEA83857C7A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1631693428; bh=CoGsIueF2QUftJnU2w7ldTvAkfhnPLSBnRtRJ64LzDo=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=js+rOo8LJMAeDiGf8J1UVoKXgwR1CYHxWAgQHiQBykCyYosz8bSgIzGJexW+q8q0L k6SFDOTD5hK9vKKOJpiWe1y8IkeN8Cl8xNzND747d9s7SP8+hMaldlvnW8RTUS7vch tX9B33f9j4Lk/8ZE9q0A6vazoux8zHhyBv2JE7wA= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by sourceware.org (Postfix) with ESMTPS id BE7D23858C3B for ; Wed, 15 Sep 2021 08:09:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BE7D23858C3B X-IronPort-AV: E=McAfee;i="6200,9189,10107"; a="244615462" X-IronPort-AV: E=Sophos;i="5.85,294,1624345200"; d="scan'208";a="244615462" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2021 01:09:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,294,1624345200"; d="scan'208";a="452445283" Received: from scymds02.sc.intel.com ([10.82.73.244]) by orsmga002.jf.intel.com with ESMTP; 15 Sep 2021 01:09:54 -0700 Received: from shgcc10.sh.intel.com (shgcc10.sh.intel.com [10.239.154.125]) by scymds02.sc.intel.com with ESMTP id 18F89p6i023358; Wed, 15 Sep 2021 01:09:52 -0700 To: ubizjak@gmail.com Subject: [PATCH 0/4] Update mtune=tremont Date: Wed, 15 Sep 2021 16:09:47 +0800 Message-Id: <20210915080951.10362-1-lili.cui@intel.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-18.8 required=5.0 tests=BAYES_00, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_SHORT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: "lili.cui--- via Gcc-patches" From: "Li, Pan2 via Gcc-patches" Reply-To: lili.cui@intel.com Cc: hongtao.liu@intel.com, gcc-patches@gcc.gnu.org Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" From: "Cui,Lili" Hi, I have four patches for tremont tuning, With all patches applied, performance impacts on SPEC CPU 2017 are: 500.perlbench_r 1.81% 502.gcc_r 0.57% 505.mcf_r 1.16% 520.omnetpp_r 0.00% 523.xalancbmk_r 0.00% 525.x264_r 4.55% 531.deepsjeng_r 0.00% 541.leela_r 0.39% 548.exchange2_r 1.13% 557.xz_r 0.00% geomean for intrate 0.95% 503.bwaves_r 0.00% 507.cactuBSSN_r 6.94% 508.namd_r 12.37% 510.parest_r 1.01% 511.povray_r 3.70% 519.lbm_r 36.61% 521.wrf_r 8.79% 526.blender_r 2.91% 527.cam4_r 6.23% 538.imagick_r 0.28% 544.nab_r 21.99% 549.fotonik3d_r 3.63% 554.roms_r -1.20% geomean for fprate 7.50% Bootstrapped and regtested on x86_64-linux-gnu{-m32,-m64}. Ok for master? x86: Update -mtune=tremont x86: Update memcpy/memset inline strategies for -mtune=tremont x86: Properly handle USE_VECTOR_FP_CONVERTS/USE_VECTOR_CONVERTS x86: Add TARGET_SSE_PARTIAL_REG_[FP_]CONVERTS_DEPENDENCY gcc/common/config/i386/i386-common.c | 2 +- gcc/config/i386/i386-features.c | 23 +++- gcc/config/i386/i386-options.c | 2 +- gcc/config/i386/i386.c | 1 + gcc/config/i386/i386.h | 4 + gcc/config/i386/i386.md | 9 +- gcc/config/i386/x86-tune-costs.h | 124 ++++++++++++++++++ gcc/config/i386/x86-tune-sched.c | 2 + gcc/config/i386/x86-tune.def | 52 +++++--- gcc/testsuite/gcc.target/i386/avx-covert-1.c | 19 +++ .../gcc.target/i386/avx-fp-covert-1.c | 15 +++ .../gcc.target/i386/avx-int-covert-1.c | 14 ++ gcc/testsuite/gcc.target/i386/pr101900-1.c | 18 +++ gcc/testsuite/gcc.target/i386/pr101900-2.c | 18 +++ gcc/testsuite/gcc.target/i386/pr101900-3.c | 19 +++ gcc/testsuite/gcc.target/i386/sse-covert-1.c | 19 +++ .../gcc.target/i386/sse-fp-covert-1.c | 15 +++ .../gcc.target/i386/sse-int-covert-1.c | 14 ++ 18 files changed, 344 insertions(+), 26 deletions(-) create mode 100644 gcc/testsuite/gcc.target/i386/avx-covert-1.c create mode 100644 gcc/testsuite/gcc.target/i386/avx-fp-covert-1.c create mode 100644 gcc/testsuite/gcc.target/i386/avx-int-covert-1.c create mode 100644 gcc/testsuite/gcc.target/i386/pr101900-1.c create mode 100644 gcc/testsuite/gcc.target/i386/pr101900-2.c create mode 100644 gcc/testsuite/gcc.target/i386/pr101900-3.c create mode 100644 gcc/testsuite/gcc.target/i386/sse-covert-1.c create mode 100644 gcc/testsuite/gcc.target/i386/sse-fp-covert-1.c create mode 100644 gcc/testsuite/gcc.target/i386/sse-int-covert-1.c