From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42104 invoked by alias); 22 Apr 2015 12:27:34 -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 42057 invoked by uid 89); 22 Apr 2015 12:27:33 -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,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx2.suse.de Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Wed, 22 Apr 2015 12:27:33 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 155C6AD6B; Wed, 22 Apr 2015 12:27:30 +0000 (UTC) Date: Wed, 22 Apr 2015 12:27:00 -0000 From: Richard Biener To: Jan Hubicka cc: "H.J. Lu" , GCC Patches Subject: Re: Add DSE to early passes In-Reply-To: <20150422121749.GB76372@kam.mff.cuni.cz> Message-ID: References: <20150413100117.GA61490@kam.mff.cuni.cz> <20150422121749.GB76372@kam.mff.cuni.cz> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2015-04/txt/msg01293.txt.bz2 On Wed, 22 Apr 2015, Jan Hubicka wrote: > > > @@ -42,6 +42,6 @@ bool f(I a, I b, I c, I d) { > > > // This works only if everything is inlined into 'f'. > > > > > > // { dg-final { scan-tree-dump-times ";; Function" 1 "fre2" } } > > > -// { dg-final { scan-tree-dump-times "free" 19 "fre2" } } > > > +// { dg-final { scan-tree-dump-times "free" 18 "fre2" } } > > > // { dg-final { scan-tree-dump-times "unreachable" 11 "fre2" } } > > > // { dg-final { cleanup-tree-dump "fre2" } } > > > > I got > > > > FAIL: g++.dg/tree-ssa/pr61034.C -std=gnu++11 scan-tree-dump-times > > fre2 "free" 18 > > FAIL: g++.dg/tree-ssa/pr61034.C -std=gnu++14 scan-tree-dump-times > > fre2 "free" 18 > > FAIL: g++.dg/tree-ssa/pr61034.C -std=gnu++98 scan-tree-dump-times > > fre2 "free" 18 > > > > on Linux/x86. > > Hmm, I tested on pcc64, but now I see the same failure on x86-64. > Perhaps this testcase became target sensitive? > Richard, does the count really matter? Well, it verifies that (part) of the desired optimization happens. I can't see what should be target dependent here though. Richard.