]> git.ipfire.org Git - thirdparty/gcc.git/commit
ipa-cp: Make dumping of bit masks representing -1 nicer
authorMartin Jambor <mjambor@suse.cz>
Mon, 6 Jan 2025 10:58:29 +0000 (11:58 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Mon, 6 Jan 2025 10:58:51 +0000 (11:58 +0100)
commit72b273152f75a8622ea13d0fe95d6d2461615ba4
treeda516689db41a7c5f656a3e75a953cc745e08c81
parent668cad04b16fc044142474232ac072fcc5f94433
ipa-cp: Make dumping of bit masks representing -1 nicer

Dumps of the lattices representing bit-values and of propagation
results of bit-values can print a really long hexadecimal value when
the bit-value represents -1 (all bits set).  This patch simply detect
that situation and prints the string "-1" in that case, making the
dumps somewhat nicer.

gcc/ChangeLog:

2025-01-03  Martin Jambor  <mjambor@suse.cz>

* ipa-cp.cc (ipcp_print_widest_int): New function.
(ipcp_store_vr_results): Use it.
(ipcp_bits_lattice::print): Likewise.  Fix formatting.
gcc/ipa-cp.cc