]> 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>
Mon, 12 May 2025 16:39:47 +0000 (18:39 +0200)
commit51ffec744b513a71fe84373fb87a3c0125b7fffd
tree2ed0844510a0fc8f1f97bf69551037ba9187a77d
parentc817f833cf13bc81380bc9745da2622e4e3b7cb5
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.

(cherry picked from commit fb5829a01651d427a63a12c44ecc8baa47dbfc83)
gcc/cgraphclones.cc
gcc/testsuite/gcc.dg/ipa/pr119852.c [new file with mode: 0644]