From patchwork Tue Jun 6 08:11:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 771684 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 3whktN2Pp8z9s5L for ; Tue, 6 Jun 2017 18:11:55 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="wpKMBJD0"; 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:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=sJVc75vGSJsuihr8hf7GRrXsCuGDGtC0Sl8Wiy7PHSjYlO0+9RoN6 0sZrnh0NM1I0GGfb5FlIeYWdOt1Z5BY2d5VpyYWyJq8sgP0op3YOA0LlWS+OPY+L BiOUcBg7uU0IyWcfluDkmuMxDaanX20EheMULKnvUFifSINWfbcNPM= 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:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=hKiPSF7RPtcsIhZe/cLvaD80Vgg=; b=wpKMBJD07HC3XyHgbf4p lNn+c7mLWLnvUR5Hax08LlKQr51mHMT1EVIGBoSz86fSZIkrRDmM72px0T0O5lYA z8NIAtWqus7Zg712mjci6QkbNA1lxVDCi8cQiJ2ypq24rIfMyLnXaGrHP58c31ww h8GddIgSwsUwEy2sg6/574A= Received: (qmail 123654 invoked by alias); 6 Jun 2017 08:11:41 -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 123640 invoked by uid 89); 6 Jun 2017 08:11:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=visit X-HELO: nikam.ms.mff.cuni.cz Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Jun 2017 08:11:39 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id B59495433D4; Tue, 6 Jun 2017 10:11:41 +0200 (CEST) Date: Tue, 6 Jun 2017 10:11:41 +0200 From: Jan Hubicka To: gcc-patches@gcc.gnu.org Subject: Initialize EXIT_BLOCK count when profiling Message-ID: <20170606081141.GC95556@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Hi, this patch makes the count initialization loop to also visit EXIT_BLOCK. Profiledbootstrapped/regtested x86_64-linux, comitted. Honza * profile.c (compute_branch_probabilities): Also initialize EXIT_BLOCK profile. Index: profile.c =================================================================== --- profile.c (revision 248886) +++ profile.c (working copy) @@ -826,7 +826,7 @@ compute_branch_probabilities (unsigned c } } - FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR_FOR_FN (cfun), NULL, next_bb) + FOR_ALL_BB_FN (bb, cfun) { edge e; edge_iterator ei;