From patchwork Tue Nov 15 22:55:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 695321 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 3tJN5P4C4Lz9t1L for ; Wed, 16 Nov 2016 09:55:20 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="pTyDq1en"; 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:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=A6sVKMINRbmdE36DEZr9aJ3qt/8DM/7ppsRHP7IoA5nHVH3vAXKTq t47f+n5eyvLET7o2u7qK9qGnQ5b3WhtDOs1qh2OotXcYuqE1djFhJlu4H7DV5JEE 5JuDIFgCoW9jiuvORY4rx0UYwe73xvbRS4aTJNF4qQL2ig7M0Z1UFI= 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=vvXEYa5S6jWwp8jSuuOtiQs2DOY=; b=pTyDq1eneS8ZkaAE7HZ6 pHM+dGg9+xw3mAY2avjh7uBF9EnWDlXAQ6CAwcRjGDGcxWaT2w+jnEo4/46tt30R TWSq80fX+q73VocjZf5NynrvPbmce9u0MlR8gL91LYKQ9idlgtx6FHxC/MShg0Ok MuRh8ku9YksuRo4nVB6Tyg4= Received: (qmail 67276 invoked by alias); 15 Nov 2016 22:55:13 -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 67245 invoked by uid 89); 15 Nov 2016 22:55:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, SPF_PASS autolearn=ham version=3.3.2 spammy=IRA, ira X-HELO: mail-pg0-f50.google.com Received: from mail-pg0-f50.google.com (HELO mail-pg0-f50.google.com) (74.125.83.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 15 Nov 2016 22:55:11 +0000 Received: by mail-pg0-f50.google.com with SMTP id f188so71267772pgc.3 for ; Tue, 15 Nov 2016 14:55:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=rmC6WCugAWoQM949qqs+OQe3q9czKx74op40es7m3a0=; b=R7RIuEoCZRhV94F4+eKIWoWK+9Jf4QfMHbSq3HEJ1F6My/zOhqfPWMlnFWfkBD698K 4P6AJiAYh7yvWoIvXJxUCta14OoIQLClu04524YhOpB9eGyP2OFfKv2sqs5YcSSaLZAw p7oVNH5D2FJ3XdRE3Ny4Qhd/rrv4+zHSWfMJusD9gr1ZuIMHYpb6cAvCFRjDbra4kKtQ l1hwVJ1O1xrY+My+2JqAze6sOEbqiriivfEqNpfkWxZ/ZXiqAQUtzQMTVXGsN1lKr7z3 0kUarkLGkrLaNJPy3kqpd/n3DeDBgSf+FCF/yKO4bedz6GtjfJolUyNHm5oxUW6tiY39 rDiQ== X-Gm-Message-State: ABUngvdYKaHv6vmZdlfHwsmGZ5n3rGhdCzuNt0N/xwDuUE+NyoXs0FxDUjT8ffSEOb8I1g== X-Received: by 10.98.0.143 with SMTP id 137mr3446pfa.183.1479250509414; Tue, 15 Nov 2016 14:55:09 -0800 (PST) Received: from bubble.grove.modra.org (CPE-58-160-71-80.tyqh2.lon.bigpond.net.au. [58.160.71.80]) by smtp.gmail.com with ESMTPSA id b80sm34138081pfe.52.2016.11.15.14.55.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Nov 2016 14:55:08 -0800 (PST) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 4AE47C0528; Wed, 16 Nov 2016 09:25:05 +1030 (ACDT) Date: Wed, 16 Nov 2016 09:25:05 +1030 From: Alan Modra To: gcc-patches@gcc.gnu.org Subject: [PATCH, IRA] PR78325, R_MIPS_JALR failures Message-ID: <20161115225505.GB11815@bubble.grove.modra.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes This is a fix for my PR70890 patch, which incorrectly removed all REG_EQUIV notes rather than just one regarding a reg that dies. Bootstrapped and regression tested powerpc64le-linux, x86_64-linux, and mips-linux. OK to apply? PR rtl-optimization/78325 PR rtl-optimization/70890 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes for dead regno. diff --git a/gcc/ira.c b/gcc/ira.c index 315b847..4ee99d7 100644 --- a/gcc/ira.c +++ b/gcc/ira.c @@ -3747,7 +3747,7 @@ combine_and_move_insns (void) use_insn, when regno was seen as non-local. Now that regno is local to this block, and dies, such an equivalence is invalid. */ - if (find_reg_note (use_insn, REG_EQUIV, NULL_RTX)) + if (find_reg_note (use_insn, REG_EQUIV, regno_reg_rtx[regno])) { rtx set = single_set (use_insn); if (set && REG_P (SET_DEST (set)))