From patchwork Fri Mar 21 21:15:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dehao Chen X-Patchwork-Id: 332760 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 10B292C00B5 for ; Sat, 22 Mar 2014 08:15:30 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:cc:content-type; q=dns; s=default; b=eJKwIwkVntZIrKxXKelFFWP60qySngLEM/ORM5FtF1k usqMcNdLGpHrh9QIRi7B3bo1XmLdfOvlFD0HPoz6WJaL3/niZkvrkI8lwDA7y10t PfEBanb406kL50GbJY29QuiKbNoUy0GY3WfP9a7a+reyWZOt9rmyoLXK6I9oxmpU = 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 :mime-version:date:message-id:subject:from:to:cc:content-type; s=default; bh=lKl2NleFj3Jz5kgm6pdXO+nnSss=; b=GkKJ3Ln27e1R5Myyu OQwkuT4LfE5sdlV/1tN3XKSZi11TZ4z6I+W6ZD8BG+hIQz7PcfPR7T5Oj9i6zj04 KbVORWRpXwuDX3RtzeuS4XHYXnctB7FxIoVue1NcdNiU7OxVgdpPtQOktAwuzpA+ SA1GPCnQx14YUb/pV6APkeTHQs= Received: (qmail 28643 invoked by alias); 21 Mar 2014 21:15:24 -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 28632 invoked by uid 89); 21 Mar 2014 21:15:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-ig0-f178.google.com Received: from mail-ig0-f178.google.com (HELO mail-ig0-f178.google.com) (209.85.213.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 21 Mar 2014 21:15:18 +0000 Received: by mail-ig0-f178.google.com with SMTP id uq10so2552715igb.5 for ; Fri, 21 Mar 2014 14:15:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc :content-type; bh=I0uDwo7MC64IplzdjurJsR+OHcwTJ1t2Gp8aD9Nr1PA=; b=NE3gnnP7KIfFQTie1xoPaakT7ehIRwP4Hfq7+gLVDXQF4VZNcskA+/K8Epx2Wvty9F lMUEqTFFAsFSd4RWKFZw6OYkzwta49avH++CW5Witgu3QtHOVpM/cQtTCMKRlSIvtoDz WE/JgWbKOdVGmWE2UakUMRkXqMb5Oy0FX1jqnlyGQuh32e20KdO4q8YviZqeLLcwPq+N mWAc4lHp/K+fT7PY9VsHEuLl4PoO9ws+o6kTvA03yMkBXRcTVySNxcTcDTJ8AYCEQWJ0 NPoDGp0ERcy1MbdQAaqAb8uO14bZBWdSP0Z6tmGiFSW3LSWIcnBsl91VQnTF/2iB7Mke kfoA== X-Gm-Message-State: ALoCoQnYaGEF9THO69aXZhXjcYtRfsfVRFFM5htUqA9xmCiqq9A6s5SL7J+MXH6CucMr3BIFxMdWxKDu625q11THbDoZHdvr7oUyLOkaqo2oYULYo4IjbGAUzb3a7YPaYY7aOHpTe9y6nxpX9MMkYl63Qkx5JaxAFAQkDARxqOuMkwfgDFVkWbDbvwnuTgiDP2vySkCwGXtLXdbMcmmgwheaW2VP1eDKAQ== MIME-Version: 1.0 X-Received: by 10.50.253.228 with SMTP id ad4mr4909008igd.39.1395436517223; Fri, 21 Mar 2014 14:15:17 -0700 (PDT) Received: by 10.64.18.207 with HTTP; Fri, 21 Mar 2014 14:15:17 -0700 (PDT) Date: Fri, 21 Mar 2014 14:15:17 -0700 Message-ID: Subject: [PATCH] Update the overall summary after edge_summary is updated From: Dehao Chen To: GCC Patches Cc: David Li , Luis Lozano , Jan Hubicka X-IsSubscribed: yes Hi, This patch updates node's inline summary after edge_summary is updated. Otherwise it could lead to incorrect inline summary. Bootstrapped and gcc regression test on-going. OK for trunk? Thanks, Dehao gcc/ChangeLog: 2014-03-21 Dehao Chen *ipa-inline.c (early_inliner): updates overall summary. Index: gcc/ipa-inline.c =================================================================== --- gcc/ipa-inline.c (revision 208755) +++ gcc/ipa-inline.c (working copy) @@ -2318,6 +2318,7 @@ early_inliner (void) edge->call_stmt, edge->callee->decl, false)) edge->call_stmt_cannot_inline_p = true; } + inline_update_overall_summary (node); timevar_pop (TV_INTEGRATION); iterations++; inlined = false;