From patchwork Sun Nov 25 05:52:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vladimir Makarov X-Patchwork-Id: 1002732 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-490824-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="mgjpGLbL"; 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 432fMq34VRz9s1c for ; Sun, 25 Nov 2018 16:52:36 +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:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=NXgGj8UwQ+MluYGvCnJv0BR6Fyzp9aYsIIqjsRxEYRfw10S6DL bJFp+iWS+YaCY1x2XjZQ+YB+FRlho/lgKZ5VbJnFWRm4KE2jPhTEkqJtwt0tHXKT sQ9Y5HT+QHRcTWTmSzhrmBcMcpxhfaXKOUZ91yq7P1mS5fgF0cxIobqmw= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=HB1fu5l4BYS8q25TJML/7KhBlAE=; b=mgjpGLbLdsM1q1ZwpI+c 50VTxzgiE3v0coO7RZweFiA39zycTMLJ7YX9OqMeK7/bI3elqERfXgtEzqVIXePv 9raEGKRWfqoabZ1RCE5DhfyQxJUpCJXLC8UE90khDW9D7sGQ1Frf1Gi37jDrEFra HIGmBg9UDgCt3nNYfhbWxwM= Received: (qmail 74533 invoked by alias); 25 Nov 2018 05:52:27 -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 74463 invoked by uid 89); 25 Nov 2018 05:52:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.6 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, KAM_NUMSUBJECT, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=*insn X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 25 Nov 2018 05:52:20 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A665D12BCE for ; Sun, 25 Nov 2018 05:52:18 +0000 (UTC) Received: from [10.10.120.54] (ovpn-120-54.rdu2.redhat.com [10.10.120.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5FB222E0BD for ; Sun, 25 Nov 2018 05:52:18 +0000 (UTC) To: gcc-patches From: Vladimir Makarov Subject: One more patch for PR88157 Message-ID: <57135eff-4678-779b-d036-228465659348@redhat.com> Date: Sun, 25 Nov 2018 00:52:17 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 X-IsSubscribed: yes Sorry,  my patch for pr88157 caused a lot of ICEs on different targets.  The problem that cost vector was not initialized on some targets for some modes (we use a lazy approach in cost calculations in RA).  Here is the patch which should fix the ICEs.   Committed as rev. 266435. Index: ChangeLog =================================================================== --- ChangeLog (revision 266434) +++ ChangeLog (working copy) @@ -1,3 +1,9 @@ +2018-11-25 Vladimir Makarov + + PR bootstrap/88157 + * ira-costs.c (record_operand_costs): Initiate register move cost + for mode. + 2018-11-23 Jeff Law PR rtl-optimization/87468 Index: ira-costs.c =================================================================== --- ira-costs.c (revision 266422) +++ ira-costs.c (working copy) @@ -1318,6 +1318,7 @@ record_operand_costs (rtx_insn *insn, en int cost, k; bool dead_p = find_regno_note (insn, REG_DEAD, REGNO (src)); + ira_init_register_move_cost_if_necessary (mode); hard_reg_class = REGNO_REG_CLASS (other_regno); /* Target code may return any cost for mode which does not fit the the hard reg class (e.g. DImode for AREG on