From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30716 invoked by alias); 5 Jul 2012 12:46:17 -0000 Received: (qmail 30706 invoked by uid 22791); 5 Jul 2012 12:46:16 -0000 X-SWARE-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-ob0-f175.google.com (HELO mail-ob0-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 Jul 2012 12:46:04 +0000 Received: by obcva7 with SMTP id va7so14135731obc.20 for ; Thu, 05 Jul 2012 05:46:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.72.9 with SMTP id z9mr21267162obu.5.1341492364028; Thu, 05 Jul 2012 05:46:04 -0700 (PDT) Received: by 10.76.82.4 with HTTP; Thu, 5 Jul 2012 05:46:04 -0700 (PDT) In-Reply-To: References: <201207041702.q64H2GGj017517@d06av02.portsmouth.uk.ibm.com> Date: Thu, 05 Jul 2012 12:46:00 -0000 Message-ID: Subject: Re: Tree tail merging breaks __builtin_unreachable optimization From: Richard Guenther To: Michael Matz Cc: Steven Bosscher , Ulrich Weigand , gcc-patches@gcc.gnu.org, tom@codesourcery.com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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 X-SW-Source: 2012-07/txt/msg00184.txt.bz2 On Thu, Jul 5, 2012 at 2:44 PM, Michael Matz wrote: > Hi, > > On Wed, 4 Jul 2012, Steven Bosscher wrote: > >> On Wed, Jul 4, 2012 at 7:02 PM, Ulrich Weigand wrote: >> > Any suggestions how to fix this? Should tail merging detect >> > __builtin_unreachable and not merge such block? >> >> That seems to be the most straight-forward thing to do. I don't think >> there are any other passes that do this kind of code merging. > > What do we gain by delaying to remove these blocks until RTL? AFAICS not > much if anything. So removing those on the tree level would make more > sense. The gain is to derive assertions from the conditional guarding these blocks and optimize using that knowledge. Richard. > > Ciao, > Michael.