From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129595 invoked by alias); 14 Apr 2015 13:22:51 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 129578 invoked by uid 89); 14 Apr 2015 13:22:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-lb0-f174.google.com Received: from mail-lb0-f174.google.com (HELO mail-lb0-f174.google.com) (209.85.217.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 14 Apr 2015 13:22:50 +0000 Received: by lbbuc2 with SMTP id uc2so8134748lbb.2 for ; Tue, 14 Apr 2015 06:22:46 -0700 (PDT) X-Received: by 10.112.17.68 with SMTP id m4mr7618440lbd.10.1429017766579; Tue, 14 Apr 2015 06:22:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.83.204 with HTTP; Tue, 14 Apr 2015 06:22:06 -0700 (PDT) In-Reply-To: <20150414125835.GK1725@tucnak.redhat.com> References: <20150414125835.GK1725@tucnak.redhat.com> From: Steven Bosscher Date: Tue, 14 Apr 2015 13:22:00 -0000 Message-ID: Subject: Re: [PATCH] Fix rtl_split_edge (PR rtl-optimization/65761) To: Jakub Jelinek Cc: Richard Biener , Jeff Law , Eric Botcazou , Jan Hubicka , GCC Patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00661.txt.bz2 On Tue, Apr 14, 2015 at 2:58 PM, Jakub Jelinek wrote: > PR rtl-optimization/65761 > * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use > get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)). > > --- gcc/cfgrtl.c.jj 2015-04-12 21:50:18.000000000 +0200 > +++ gcc/cfgrtl.c 2015-04-14 12:45:34.127722958 +0200 > @@ -1928,7 +1928,7 @@ rtl_split_edge (edge edge_in) > && (edge_in->flags & EDGE_CROSSING)) > { > after = last_bb_in_partition (edge_in->src); > - before = NEXT_INSN (BB_END (after)); > + before = get_last_bb_insn (after); > /* The instruction following the last bb in partition should > be a barrier, since it cannot end in a fall-through. */ > gcc_checking_assert (BARRIER_P (before)); This is OK. Ciao! Steven