]> git.ipfire.org Git - thirdparty/gcc.git/commit
ipa: Do not emit info about temporary clones to ipa-clones dump (PR119852)
authorMartin Jambor <mjambor@suse.cz>
Tue, 6 May 2025 15:28:43 +0000 (17:28 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 6 May 2025 15:32:19 +0000 (17:32 +0200)
commitfb5829a01651d427a63a12c44ecc8baa47dbfc83
treea84146d3e8552e18292905cf4d7b5c973efba6f8
parent6ecc2fee06bdd60da0e9b3fe6660b553dbdca3ca
ipa: Do not emit info about temporary clones to ipa-clones dump (PR119852)

As described in PR 119852, the output of -fdump-ipa-clones can contain
"(null)" as the suffix/reason for cloning when we need to create a
clone to hold the original function during recursive inlining.  Such
clone is never output and so should not be part of the dump output
either.

gcc/ChangeLog:

2025-04-23  Martin Jambor  <mjambor@suse.cz>

PR ipa/119852
* cgraphclones.cc (dump_callgraph_transformation): Document the
function.  Do not dump if suffix is NULL.

gcc/testsuite/ChangeLog:

2025-04-23  Martin Jambor  <mjambor@suse.cz>

PR ipa/119852
* gcc.dg/ipa/pr119852.c: New test.
gcc/cgraphclones.cc
gcc/testsuite/gcc.dg/ipa/pr119852.c [new file with mode: 0644]