From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23337 invoked by alias); 30 May 2014 23:51:20 -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 23328 invoked by uid 89); 30 May 2014 23:51:19 -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-yh0-f46.google.com Received: from mail-yh0-f46.google.com (HELO mail-yh0-f46.google.com) (209.85.213.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 30 May 2014 23:51:18 +0000 Received: by mail-yh0-f46.google.com with SMTP id 29so2202947yhl.19 for ; Fri, 30 May 2014 16:51:16 -0700 (PDT) X-Received: by 10.236.47.201 with SMTP id t49mr26143588yhb.123.1401493876550; Fri, 30 May 2014 16:51:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.170.122.2 with HTTP; Fri, 30 May 2014 16:50:36 -0700 (PDT) In-Reply-To: References: From: Steven Bosscher Date: Fri, 30 May 2014 23:51:00 -0000 Message-ID: Subject: Re: [PATCH] Updates merged bb count To: Dehao Chen Cc: GCC Patches , Jan Hubicka Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg02663.txt.bz2 On Fri, May 30, 2014 at 11:43 PM, Dehao Chen wrote: > Index: gcc/testsuite/gcc.dg/tree-prof/merge_block.c > =================================================================== > --- gcc/testsuite/gcc.dg/tree-prof/merge_block.c (revision 0) > +++ gcc/testsuite/gcc.dg/tree-prof/merge_block.c (revision 0) > @@ -0,0 +1,20 @@ > + > +/* { dg-options "-O2 -fno-ipa-pure-const > -fdump-tree-optimized-blocks-details -fno-early-inlining" } */ > +int a[8]; > +int t() > +{ > + int i; > + for (i = 0; i < 3; i++) > + if (a[i]) > + break; > + return i; > +} > +main () > +{ > + int i; > + for (i = 0; i < 1000; i++) > + t (); > + return 0; > +} > +/* { dg-final-use { scan-tree-dump-not "Invalid sum" "optimized"} } */ > +/* { dg-final-use { cleanup-tree-dump "optimized" } } */ I suppose you want to avoid having t() inlined into main()? If so, then I'd suggest adding __attribute__((__noinline__,__noclone__)) to "robustify" the test case. Ciao! Steven