From patchwork Sat Jul 1 12:48:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 783067 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 3x0Crf4YN4z9t2c for ; Sat, 1 Jul 2017 22:49:04 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="wgFcOMdJ"; 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=stz80d9ouPYu3kM4/ds/rNS00ssCWMRagcQYq/57CjrnZNxbPxxgZ zW9lmVEYGfkhTd+llj2opEmEAMB955IQJIo9VaqM1EiLsmlUOjbD+tYafbcgT+2E ZEeeemyN7LU6DVFQdXyf92r1gel0Si3zfRzZ5bji4o/j86x4AScx0o= 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=mb63x2uq8A2SQvWrRYC9yjutra0=; b=wgFcOMdJsNeZ3K/k1u0s e49a0aK8I7+hY1DpMnZhABaKCo9E3UgihCihhee4hPdlVsXQBRyGokxmo/yREADO JDB8TMDofCfzjNxvNAurvZJsNF6rI0+e41Spj5ChULFU8EkssPFfxaZGs5IuQXg5 YnYDZPIxhEcaq6phj2mljUI= Received: (qmail 32727 invoked by alias); 1 Jul 2017 12:48:57 -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 32710 invoked by uid 89); 1 Jul 2017 12:48:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-languages-length:950, bas 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; Sat, 01 Jul 2017 12:48:56 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 03B5A5467E7; Sat, 1 Jul 2017 14:48:53 +0200 (CEST) Date: Sat, 1 Jul 2017 14:48:53 +0200 From: Jan Hubicka To: gcc-patches@gcc.gnu.org, rth@redhat.com, aldyh@redhat.com Subject: Update profile in split_bb_make_tm_edge Message-ID: <20170701124853.GB20086@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Hi, this patch updates profile in trans-mem.c. I know little about trans-mem but I think it is safe to assume that the abnormal edge almost never executes as it is cancellation of the TM profile. Bootstrapped/regtested x86_64-linux, will commit it soon. Honza * trans-mem.c (split_bb_make_tm_edge): Update profile. Index: trans-mem.c =================================================================== --- trans-mem.c (revision 249869) +++ trans-mem.c (working copy) @@ -3211,7 +3211,9 @@ split_bb_make_tm_edge (gimple *stmt, bas edge e = split_block (bb, stmt); *pnext = gsi_start_bb (e->dest); } - make_edge (bb, dest_bb, EDGE_ABNORMAL); + edge e = make_edge (bb, dest_bb, EDGE_ABNORMAL); + e->probability = profile_probability::guessed_never (); + e->count = profile_count::guessed_zero (); // Record the need for the edge for the benefit of the rtl passes. if (cfun->gimple_df->tm_restart == NULL)