From patchwork Wed Mar 15 23:06:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Makarov X-Patchwork-Id: 739466 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 3vk6gW4Ydqz9s03 for ; Thu, 16 Mar 2017 10:07:03 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="EFaFaMem"; 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:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=ZYwwwKBkWta4PyOm3+z9uoIgYQUE1pjayiWYvA5m8O6pHIGGjw bug47sXFcj/SN3vh2RB3h36fjT0rb/JKCo0RLtNYm6Llx7QhQ35xb30tNauhoUIK He9a+zL1znfnLAtjJaKejz/+L+dBKyZcYSJjxTYfFavGhHMIlKCwQExio= 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=e2PHJRJd24ePITDWIbjc0D6M/4U=; b=EFaFaMem1r1rzZfu1IPS TYcV5LQaxTnJAnrVYzpu1X8YVihhBslxw0ru65Yz4UoEZYkdAOBgbOqandTWtXLz LbNpJfEVfDnc9WTRAm3HA2rSoO2tq/4yugjdGy3ByzSnF/mjHuxIfg86gtCg1UlL IGFZZhhLqHqR3NFKL9L9GXk= Received: (qmail 43047 invoked by alias); 15 Mar 2017 23:06:55 -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 42520 invoked by uid 89); 15 Mar 2017 23:06:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.1 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= 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; Wed, 15 Mar 2017 23:06:53 +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 C20E8369C4 for ; Wed, 15 Mar 2017 23:06:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C20E8369C4 Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=vmakarov@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com C20E8369C4 Received: from [10.10.120.117] (unknown [10.10.120.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8698F60A9D for ; Wed, 15 Mar 2017 23:06:53 +0000 (UTC) To: "gcc-patches@gcc.gnu.org" From: Vladimir Makarov Subject: patch to fix PR80017 Message-ID: <12e4796d-0870-5dbf-f119-5e6db93b877e@redhat.com> Date: Wed, 15 Mar 2017 19:06:52 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 X-IsSubscribed: yes The following patch fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80017 The patch was successfully bootstrapped and tested on x86-64, ppc64, and aarch64. Committed as rev. 246181. Index: ChangeLog =================================================================== --- ChangeLog (revision 246180) +++ ChangeLog (working copy) @@ -1,3 +1,9 @@ +2017-03-15 Vladimir Makarov + + PR target/80017 + * lra-constraints.c (process_alt_operands): Increase reject for + reloading an input/output operand. + 2017-03-15 Michael Meissner PR target/79038 Index: lra-constraints.c =================================================================== --- lra-constraints.c (revision 246180) +++ lra-constraints.c (working copy) @@ -2713,6 +2713,15 @@ process_alt_operands (int only_alternati if (MEM_P (op) && offmemok) addr_losers++; + else if (curr_static_id->operand[nop].type == OP_INOUT) + { + if (lra_dump_file != NULL) + fprintf + (lra_dump_file, + " %d Input/Output reload: reject+=%d\n", + nop, LRA_LOSER_COST_FACTOR); + reject += LRA_LOSER_COST_FACTOR; + } } if (early_clobber_p && ! scratch_p)