From patchwork Tue Feb 2 20:28:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Stepanyan, Victoria" X-Patchwork-Id: 577588 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E9C8B140784 for ; Wed, 3 Feb 2016 07:28:58 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=X66KbmzH; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:content-type:mime-version; q=dns; s=default; b=tarWBhe6h2MLJkyaotPeCgaS6/ttLQ6tapbIwm1vLv6Cldft1n w0v6ghY0GnLpNgE+asH84hvF5XU5gdNPPLOy9tbz2QK4FRY4+3xdPwOYakwLHcAI 5ZhbuMFFWptter30NWP2JlfsyCDW48GiUU3sN1Xb6hAuOqkRrr3kudg3k= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:content-type:mime-version; s= default; bh=M4c88sB/EqExfCmngVoeVuY5Ilg=; b=X66KbmzHtPUmJXHKx9aa 7q26C+YSgkLd/kiV7dLSayogOYcRmw257+e55NZvj0C64URgS6T90Kf1SANjTXCf qLixULIX3SjvXI+cx+t3dokUclwAJcu+aUj5mcoyHLFajiAJIzk8bDO3P1uUbu8V zwldK+TqyE57V3ijMCfT4i0= Received: (qmail 44485 invoked by alias); 2 Feb 2016 20:28:50 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 44460 invoked by uid 89); 2 Feb 2016 20:28:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=BAYES_50, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=no version=3.3.2 spammy=victoria, Victoria, HX-OriginatorOrg:amd.com, D*amd.com X-HELO: na01-bn1-obe.outbound.protection.outlook.com Received: from mail-bn1on0096.outbound.protection.outlook.com (HELO na01-bn1-obe.outbound.protection.outlook.com) (157.56.110.96) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA256 encrypted) ESMTPS; Tue, 02 Feb 2016 20:28:48 +0000 Received: from DM2PR12MB0137.namprd12.prod.outlook.com (10.161.145.153) by CY1PR1201MB1100.namprd12.prod.outlook.com (10.169.19.16) with Microsoft SMTP Server (TLS) id 15.1.396.15; Tue, 2 Feb 2016 20:28:43 +0000 Received: from DM2PR12MB0137.namprd12.prod.outlook.com ([10.161.145.153]) by DM2PR12MB0137.namprd12.prod.outlook.com ([10.161.145.153]) with mapi id 15.01.0390.019; Tue, 2 Feb 2016 20:28:43 +0000 From: "Stepanyan, Victoria" To: "'gcc-patches@gcc.gnu.org'" CC: "'gerald@pfeifer.com'" , "'ubizjak@gmail.com'" , "'rguenther@suse.de'" , "Kumar, Venkataramanan" Subject: Turnoff prefetching for -march=znver1 Date: Tue, 2 Feb 2016 20:28:42 +0000 Message-ID: authentication-results: gcc.gnu.org; dkim=none (message not signed) header.d=none; gcc.gnu.org; dmarc=none action=none header.from=amd.com; x-ms-office365-filtering-correlation-id: dbf79122-744e-4588-c31b-08d32c0f719d x-microsoft-exchange-diagnostics: 1; CY1PR1201MB1100; 5:YXlGRIVEy6LmGTlYEUIaqumgAGXuXVzXh6uzWHLDbZ7RcXRTAln/VL7Avc1qX6xgxIe0DANFGvGL8C1OcRZZstr39pl5y6liBQOqBMKl/r/3G707YQH1G5buUxZv/k11uNiDJvjpeK6Q+pXXSwjpvg==; 24:68ww4zAKWu42p23EQX83Q/hUTDXeecBGGWsJhKb0yZis6dzvXH/RTspQlJ65sVp/S62LPti60r/e1vXWG/Oat7MPxOI+jjxmOqhk6Zpm8+I=; 20:+Ghlgx5rZDNXyP5S2Y/ljVQ/zWum+O52Tw6nplf2XV65MoL9yXYo2WxKQN9v0RO7u/AVE0nq5DNw5Rhs8PvuMEnT/6b8cfr/rd+MO0c6AX9MnHMpmzd6gwaLRGy0ryRU0nGhDX9pPU53kDndsuNDJMcOhr6ClbAfkc0MT02q4rQtTLNeDiKO0w8dEZtI1L3y3ehZ9HY2d9EI9IFsnpZvIt9aos/fBughkIDQxbtn14Di6VzEQeBRVFdruVy/5wTu x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR1201MB1100; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(767451399110); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(102415267)(102615245)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:CY1PR1201MB1100; BCL:0; PCL:0; RULEID:; SRVR:CY1PR1201MB1100; x-forefront-prvs: 084080FC15 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(54534003)(377424004)(558084003)(5003600100002)(10400500002)(77096005)(5002640100001)(92566002)(586003)(3280700002)(189998001)(2906002)(3660700001)(74316001)(3846002)(5008740100001)(1096002)(66066001)(102836003)(6116002)(11100500001)(4326007)(19580405001)(5001960100002)(40100003)(50986999)(76576001)(54356999)(1220700001)(19580395003)(33656002)(99286002)(2900100001)(122556002)(229853001)(99936001)(87936001)(5004730100002)(110136002)(86362001)(491001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR1201MB1100; H:DM2PR12MB0137.namprd12.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2016 20:28:42.5730 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR1201MB1100 Hi Maintainers, This patch disables prefetching for -march=znver1 which is turned on by default. gcc/ChangeLog: 2016-02-02 Victoria Stepanyan * gcc/config/i386/x86-tune.def: Disable default prefetching for -march=znver1 Ok for trunk? Victoria --- a/gcc/config/i386/x86-tune.def +++ b/gcc/config/i386/x86-tune.def @@ -218,7 +218,7 @@ DEF_TUNE (X86_TUNE_FOUR_JUMP_LIMIT, "four_jump_limit", at -O3. For the moment, the prefetching seems badly tuned for Intel chips. */ DEF_TUNE (X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL, "software_prefetching_beneficial", - m_K6_GEODE | m_AMD_MULTIPLE) + m_K6_GEODE | m_ATHLON_K8 | m_AMDFAM10 | m_BDVER | m_BTVER) /* X86_TUNE_LCP_STALL: Avoid an expensive length-changing prefix stall on 16-bit immediate moves into memory on Core2 and Corei7. */