From patchwork Sun Oct 8 10:58:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 822994 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-463704-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="UCuh9nk7"; dkim-atps=neutral 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 3y90jw2dycz9t3t for ; Sun, 8 Oct 2017 21:59:00 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=GAmT3Niu6O7YRlp03fVrYY2BWWfV2bnIc8OiIln+u8iGfqzyvvu+i /tsyoIIQKPGS/IOky89moYK2NXFPOxJsD5+svscCPmHj9WAnShhZOXICJQ4oSfKM 3ScoRZhR/Z1Fixr89F+4yZxhk5Vj62v3QRJtUmZ8cIhRFvGHSxRKFk= 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:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=+/2v1lDLhVK1T5fd2xGOpYr3zH0=; b=UCuh9nk7HWxxwMybGpnI 58PAAY2Wc8fbQqfk1phBuIXHcSDk+1ChajunNsgWkfQWnxVj9BdBEeaSHwgyMjw4 WuWqXgMzIsrPb/775nqeQspkc2RHeDUXSL6V/lpJ5FwZJv7+10pDN6BdOiZr3tBE 3ztTnEuDBMX/edrShGgAA6o= Received: (qmail 100279 invoked by alias); 8 Oct 2017 10:58:52 -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 100265 invoked by uid 89); 8 Oct 2017 10:58:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=significantly X-HELO: nikam.ms.mff.cuni.cz Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 08 Oct 2017 10:58:51 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 49A0954889A; Sun, 8 Oct 2017 12:58:49 +0200 (CEST) Date: Sun, 8 Oct 2017 12:58:49 +0200 From: Jan Hubicka To: gcc-patches@gcc.gnu.org, Venkataramanan.Kumar@amd.com Subject: Zen tuning part 5: Disable buldozer dispatch scheduling Message-ID: <20171008105849.GB94265@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Hi, at the moment we do dispatch scheduling which is trying to optimize for Buldrozer's decoder. This does not make much sense as both decoders are significantly different. Bootstrapped/regtested x86_64-linux, comitted. Honza * i386.c (has_dispatch): Disable for Ryzen. Index: i386.c =================================================================== --- i386.c (revision 253513) +++ i386.c (working copy) @@ -51798,8 +51801,9 @@ do_dispatch (rtx_insn *insn, int mode) static bool has_dispatch (rtx_insn *insn, int action) { + /* Current implementation of dispatch scheduler models buldozer only. */ if ((TARGET_BDVER1 || TARGET_BDVER2 || TARGET_BDVER3 - || TARGET_BDVER4 || TARGET_ZNVER1) && flag_dispatch_scheduler) + || TARGET_BDVER4) && flag_dispatch_scheduler) switch (action) { default: