]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add global setter for value/mask pair for SSA names.
authorAldy Hernandez <aldyh@redhat.com>
Sun, 16 Jul 2023 18:44:02 +0000 (20:44 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Mon, 17 Jul 2023 07:17:59 +0000 (09:17 +0200)
commit53cf0c583b0d80f9db95edfde5778b11c572559f
tree9cf80a217f1b715228ba91ec491c012df6dfcaf9
parent56cf8b01fe1d4d4bb33a107e5d490f589d5f05bc
Add global setter for value/mask pair for SSA names.

This patch provides a way to set the value/mask pair of known bits
globally, similarly to how we can use set_nonzero_bits for known 0
bits.  This can then be used by CCP and IPA to set value/mask info
instead of throwing away the known 1 bits.

In further clean-ups, I will see if it makes sense to remove
set_nonzero_bits altogether, since it is subsumed by value/mask.

gcc/ChangeLog:

* tree-ssanames.cc (set_bitmask): New.
* tree-ssanames.h (set_bitmask): New.
gcc/tree-ssanames.cc
gcc/tree-ssanames.h