From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1611) id ACBD4385842D; Tue, 22 Nov 2022 17:30:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ACBD4385842D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669138242; bh=y+H4A4Bwg6O1lGWwpMR6rsMoxcvVqzW649YbVhWWmAk=; h=From:To:Subject:Date:From; b=DpaTjJeZmqvIB34s6FR4fGiH9YA6wldnh4XekbVO7wPkzWOmU6YX/MkW3Kku47na6 0Fs5BYB9rzyj20KGG8tTdA6JYsK5TgplPMenWwY4JNR0wzcOqqkH6+vM5oxV56pRhy Y3a35CPt4yVJuuYUd1zy07MXNXkljv+X1XbK7yxE= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Jambor To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-4241] ipa-sra: Dump edge summaries also for non-candidates X-Act-Checkin: gcc X-Git-Author: Martin Jambor X-Git-Refname: refs/heads/master X-Git-Oldrev: feeb0d68f1c7085199c3734e6517a3a4b58309ef X-Git-Newrev: 95489a2a279893bf2e0fbb3fb378bdfcf0212faf Message-Id: <20221122173042.ACBD4385842D@sourceware.org> Date: Tue, 22 Nov 2022 17:30:42 +0000 (GMT) List-Id: https://gcc.gnu.org/g:95489a2a279893bf2e0fbb3fb378bdfcf0212faf commit r13-4241-g95489a2a279893bf2e0fbb3fb378bdfcf0212faf Author: Martin Jambor Date: Tue Nov 22 18:22:03 2022 +0100 ipa-sra: Dump edge summaries also for non-candidates This should have been part of r12-578-g717d278af93a4a. Call edge summaries provide information required for IPA-SRA transformations in the callees but are generated when analyzing callers and thus also callers which are not IPA-SRA candidates themselves. Therefore we analyze them but don't dump them, which makes the dumops quite incomplete. This patch fixes that. gcc/ChangeLog: 2021-12-14 Martin Jambor * ipa-sra.cc (ipa_sra_dump_all_summaries): Dump edge summaries even for non-candidates. Diff: --- gcc/ipa-sra.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gcc/ipa-sra.cc b/gcc/ipa-sra.cc index 2237ac6d92f..718201d27fa 100644 --- a/gcc/ipa-sra.cc +++ b/gcc/ipa-sra.cc @@ -2805,13 +2805,10 @@ ipa_sra_dump_all_summaries (FILE *f) if (!ifs) fprintf (f, " Function does not have any associated IPA-SRA " "summary\n"); + else if (!ifs->m_candidate) + fprintf (f, " Not a candidate function\n"); else { - if (!ifs->m_candidate) - { - fprintf (f, " Not a candidate function\n"); - continue; - } if (ifs->m_returns_value) fprintf (f, " Returns value\n"); if (vec_safe_is_empty (ifs->m_parameters))