]> git.ipfire.org Git - thirdparty/gcc.git/commit
ipa: Dump cgraph_node UID instead of order into ipa-clones dump file
authorMartin Jambor <mjambor@suse.cz>
Fri, 16 May 2025 15:13:51 +0000 (17:13 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 20 May 2025 14:49:22 +0000 (16:49 +0200)
commit76d16fbd802a10faabf63945dd34f351aea087dc
tree5d40322b403a94836c21254365ebd614ca48a9a6
parent911cfea5e59798e04479ad475870935ccfae004b
ipa: Dump cgraph_node UID instead of order into ipa-clones dump file

Since starting from GCC 15 the order is not unique for any
symtab_nodes but m_uid is, I believe we ought to dump the latter in
the ipa-clones dump, if only so that people can reliably match entries
about new clones to those about removed nodes (if any).

This patch also contains a fixes to a few other places where we have
so far dumped order to our ordinary dumps and which have been
identified by Michal Jires.

gcc/ChangeLog:

2025-05-16  Martin Jambor  <mjambor@suse.cz>

* cgraph.h (symtab_node): Make member function get_uid const.
* cgraphclones.cc (dump_callgraph_transformation): Dump m_uid of the
call graph nodes instead of order.
* cgraph.cc (cgraph_node::remove): Likewise.
* ipa-cp.cc (ipcp_lattice<valtype>::print): Likewise.
* ipa-sra.cc (ipa_sra_summarize_function): Likewise.
* symtab.cc (symtab_node::dump_base): Likewise.

Co-Authored-By: Michal Jires <mjires@suse.cz>
(cherry picked from commit 9fa534f0831892393885e64596a0d6ca8c4078b6)
gcc/cgraph.cc
gcc/cgraph.h
gcc/cgraphclones.cc
gcc/ipa-cp.cc
gcc/ipa-sra.cc
gcc/symtab.cc