From patchwork Sun Oct 27 08:08:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 1184931 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-511844-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ucw.cz Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="TGNtH2xG"; dkim-atps=neutral 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 4719VB05x1z9sP4 for ; Sun, 27 Oct 2019 19:09:03 +1100 (AEDT) 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=h91YBzFVzi0KAwbrKvBUqZMf4nVhZtIcgwb++DYo3D7GA22POVhuG wLDKcFKZntG/X8RIZhgCWnvfN89ie+oxlPD5mO92RmegGoXsJUlevdrJL3qzOWfw jEKUYkUzzUXKrT4/FZFhAObHXNgVAd9Csv/DXMTo2NjmaUfibqiS7M= 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=eHpZQNejOUtqSr6AxR87r5wYUbc=; b=TGNtH2xG27uC9cO0opvp zImEzdcoZVU0psfeJf+cUbB/obgWKtWq3g5glsiEdyMD/qrD3xjPN96nF9p58HIO YLNPwS3d4qyhHwhTItyQH0uggyfO1z6hmPrq+tLiL/g4vSb2GcWqBkZsrPXplXcw 93+bKFd2S1O8FgfblF9q1wM= Received: (qmail 12293 invoked by alias); 27 Oct 2019 08:08:55 -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 12276 invoked by uid 89); 27 Oct 2019 08:08:55 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=inline_call, sk:ipa-inl, sk:ipainl, UD:ipa-inline-transform.c 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; Sun, 27 Oct 2019 08:08:53 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id BCC0B280821; Sun, 27 Oct 2019 09:08:50 +0100 (CET) Date: Sun, 27 Oct 2019 09:08:50 +0100 From: Jan Hubicka To: gcc-patches@gcc.gnu.org Subject: Fix summaries for expanded thunks Message-ID: <20191027080850.6u5kfch7sztjwlvu@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) Hi, this is similar to previous patch - when expanding thunk summaries needs to be recomputed. Bootstrapped/regtested x86_64-linux, comitted. Honza * ipa-inline-transform.c (inline_call): update function summaries after expanidng thunk. Index: ipa-inline-transform.c =================================================================== --- ipa-inline-transform.c (revision 277474) +++ ipa-inline-transform.c (working copy) @@ -352,12 +352,14 @@ inline_call (struct cgraph_edge *e, bool if (to->thunk.thunk_p) { struct cgraph_node *target = to->callees->callee; + symtab->call_cgraph_removal_hooks (to); if (in_lto_p) to->get_untransformed_body (); to->expand_thunk (false, true); /* When thunk is instrumented we may have multiple callees. */ for (e = to->callees; e && e->callee != target; e = e->next_callee) ; + symtab->call_cgraph_insertion_hooks (to); gcc_assert (e); }