From patchwork Wed Nov 13 09:11:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 1194135 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-513209-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="bJzI55Ib"; 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 47Cf522WmPz9sNT for ; Wed, 13 Nov 2019 20:12:06 +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=GJi9sHjSUAYnGhT2LZRNROo3/2QjgIQi4CLjPsMCz04u4uxvxBnNS lMEp5gi9+WZUGtLKFXOPsl59lsRKOl2REvb0+ayX8DDpvSkcEfzTqUsMFwWp0bvK 9qAG+QMEABRP8riqsfwHbRXzKpFIVa16KSm9uk4ZJJJHJije47tLoQ= 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=rUejxjoqM+p7E/nmQyLcMdboiyM=; b=bJzI55Ib++gSPVGfe/Qr RffUI7GwEwiohZ+qvQksfaL1S/aAzBRAzKKl+EMwPngWW1SOzc8r7Eia6WgFfJkk PMAX0T0VcbVIShWqOIL6YNZuAJfBsrMtPw75NzbgEU7+FvXp9Eq9ACyNO69IpU1o LlaQfvNZeHx/DjiTPLCmaDQ= Received: (qmail 23612 invoked by alias); 13 Nov 2019 09:11:58 -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 23595 invoked by uid 89); 13 Nov 2019 09:11:58 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1827 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; Wed, 13 Nov 2019 09:11:57 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 942FB2805F0; Wed, 13 Nov 2019 10:11:55 +0100 (CET) Date: Wed, 13 Nov 2019 10:11:55 +0100 From: Jan Hubicka To: gcc-patches@gcc.gnu.org Subject: Dump info about missing summaries in ipa-prop Message-ID: <20191113091155.ref2qhwqvyjixf4k@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) Hi, this patch makes ipa-prop to dump info about missing summaries which is better than just an ICE :) Bootstrapped/regtested x86_64-linux, comitted. * ipa-prop.c (ipa_print_node_jump_functions, ipa_print_node_params): Print info about missing summaries. Index: ipa-prop.c =================================================================== --- ipa-prop.c (revision 278094) +++ ipa-prop.c (working copy) @@ -422,20 +422,19 @@ ipa_print_node_jump_functions (FILE *f, fprintf (f, " Jump functions of caller %s:\n", node->dump_name ()); for (cs = node->callees; cs; cs = cs->next_callee) { - if (!ipa_edge_args_info_available_for_edge_p (cs)) - continue; fprintf (f, " callsite %s -> %s : \n", node->dump_name (), cs->callee->dump_name ()); - ipa_print_node_jump_functions_for_edge (f, cs); + if (!ipa_edge_args_info_available_for_edge_p (cs)) + fprintf (f, " no arg info\n"); + else + ipa_print_node_jump_functions_for_edge (f, cs); } for (cs = node->indirect_calls; cs; cs = cs->next_callee) { class cgraph_indirect_call_info *ii; - if (!ipa_edge_args_info_available_for_edge_p (cs)) - continue; ii = cs->indirect_info; if (ii->agg_contents) @@ -459,7 +458,10 @@ ipa_print_node_jump_functions (FILE *f, fprintf (f, "\n"); if (ii->polymorphic) ii->context.dump (f); - ipa_print_node_jump_functions_for_edge (f, cs); + if (!ipa_edge_args_info_available_for_edge_p (cs)) + fprintf (f, " no arg info\n"); + else + ipa_print_node_jump_functions_for_edge (f, cs); } } @@ -4081,6 +4083,11 @@ ipa_print_node_params (FILE *f, struct c return; info = IPA_NODE_REF (node); fprintf (f, " function %s parameter descriptors:\n", node->dump_name ()); + if (!info) + { + fprintf (f, " no params return\n"); + return; + } count = ipa_get_param_count (info); for (i = 0; i < count; i++) {