From patchwork Wed Jan 2 11:03:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 1019960 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-493263-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="yfjHjBCJ"; 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 43V7TM35kbz9s7T for ; Wed, 2 Jan 2019 22:03:50 +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:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=Ao3O8jpzqemMElxPt/aPmPeFOOgZ0nAAxn6eqGrRftLWdF8q+k 76d8NnwLFEAOvS9nzKIfzWSur6G+ylg1W4avFWBNyWNYmw7PGKUiRU3SgM7oT5x9 9U30MfAL6/sWIx8CTZUiB6H8o/5M1w8exfGCAwjTEHpkb5UNEBIXy5Y4Y= 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:cc:subject:message-id:mime-version:content-type; s= default; bh=0tZDVtb5fqV09+TkZJPY8XgFRGk=; b=yfjHjBCJ/OuPADKgPFXk gZBTzwqvAWg5QdGK57WO2ckcQhLTnb3VJDLPtfMMv2ZR+TFaZZ+KmBcmAayQqPqg lvbuSEIcM5JsP0YFc0WkPwmjiD8il/sRF7YgoPWTnU2dH8R9Lqf5j3GJKO5AFQvl AwuMisZVTznGmGsT0cs61rE= Received: (qmail 97575 invoked by alias); 2 Jan 2019 11:03:44 -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 97566 invoked by uid 89); 2 Jan 2019 11:03:43 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.4 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, SPF_PASS autolearn=ham version=3.3.2 spammy=costs X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 02 Jan 2019 11:03:42 +0000 Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6C1EEAD8E; Wed, 2 Jan 2019 11:03:40 +0000 (UTC) Date: Wed, 2 Jan 2019 12:03:40 +0100 (CET) From: Richard Biener To: gcc-patches@gcc.gnu.org cc: hjl.tools@gmail.com Subject: [PATCH] "Fix" PR87545 Message-ID: User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 This adjusts intel costs to reflect other intel CPU costs in _one_ place to fix PR87545. But I noted that -mtune=intel lacks any common sense so please intel folks do your homework. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard. 2019-01-02 Richard Biener PR target/87545 * config/i386/x86-tune-costs.h (intel_cost): Adjust cost of cheap SSE instruction. Index: gcc/config/i386/x86-tune-costs.h =================================================================== --- gcc/config/i386/x86-tune-costs.h (revision 267505) +++ gcc/config/i386/x86-tune-costs.h (working copy) @@ -2115,7 +2115,7 @@ struct processor_costs intel_cost = { COSTS_N_INSNS (8), /* cost of FCHS instruction. */ COSTS_N_INSNS (40), /* cost of FSQRT instruction. */ - COSTS_N_INSNS (8), /* cost of cheap SSE instruction. */ + COSTS_N_INSNS (1), /* cost of cheap SSE instruction. */ COSTS_N_INSNS (8), /* cost of ADDSS/SD SUBSS/SD insns. */ COSTS_N_INSNS (8), /* cost of MULSS instruction. */ COSTS_N_INSNS (8), /* cost of MULSD instruction. */