From patchwork Wed Jun 8 01:47:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 631912 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 3rPWhz3BLtz9sBm for ; Wed, 8 Jun 2016 11:54:59 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=b5xZVlh4; 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:from :to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; q=dns; s=default; b=WoNRGIoBXiPIbTu5lMY r1GAKyYdTwfuaek9Fy64DLuFrbUN6mlcsKEch7XMrc8d2aRNppwaG73cwimjeij8 u+0wKfZGuaA82DLduAtP28FH/cMECEFGCWe5bsJ5EfXDs5PMCTAgRbAgEmMPPvbU jozqS2YlOvcIhLPg9i60Pf+M= 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:from :to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; s=default; bh=Y2Ij+IqeccWcKy4AEG4v7muer Dc=; b=b5xZVlh4v8ujbTbiccVarkFBR38JuHnDXUg/xBOJI7l4eNs4UPoFLpMXR E9UVnbT8HnDYp6SGrS7JTBsNdINvQMcfHN5KNMJ6sA6BD+YaGMkxBHYeOvXpgo4J P41M/O/t6JZdOH5wKRuIQKdVaVdgwRCmabpJsJ/DnsfCpPU9M4= Received: (qmail 5599 invoked by alias); 8 Jun 2016 01:54:08 -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 5537 invoked by uid 89); 8 Jun 2016 01:54:08 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: gcc1-power7.osuosl.org Received: from gcc1-power7.osuosl.org (HELO gcc1-power7.osuosl.org) (140.211.15.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Jun 2016 01:53:49 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id D83911C07FB; Wed, 8 Jun 2016 01:48:19 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH 7/9] cprop: Leave RTX_FRAME_RELATED_P instructions alone Date: Wed, 8 Jun 2016 01:47:38 +0000 Message-Id: <9e78a6b1a3239ef2bfa57361f9d452647ac123f3.1465347472.git.segher@kernel.crashing.org> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes Doing cprop on frame-related instructions blows up spectacularly. So don't. 2016-06-07 Segher Boessenkool * regcprop.c (copyprop_hardreg_forward_1): Don't change RTX_FRAME_RELATED_P instructions. --- gcc/regcprop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/regcprop.c b/gcc/regcprop.c index 933cc8a..0c01aab 100644 --- a/gcc/regcprop.c +++ b/gcc/regcprop.c @@ -829,6 +829,10 @@ copyprop_hardreg_forward_1 (basic_block bb, struct value_data *vd) } } + /* Don't change prologue instructions. */ + if (RTX_FRAME_RELATED_P (insn)) + set = NULL; + /* Special-case plain move instructions, since we may well be able to do the move from a different register class. */ if (set && REG_P (SET_SRC (set)))