https://gcc.gnu.org/g:285642dbf991543e9afc65db7dc6df8760022803

commit r17-6123-g285642dbf991543e9afc65db7dc6df8760022803
Author: Josef Melcr <[email protected]>
Date:   Tue Nov 10 15:45:37 2026 +0100

    ipa: Remove unused declaration in get_value_and_mask
    
    I ran into this unused function declaration in
    ipcp_bits_lattice::get_value_and_mask.  I found it strange, but it's
    probably just left over from some other version of the bit propagation
    patch, since the git blame on it is 10 years old.
    
    Pushing as obvious.
    
    gcc/ChangeLog:
    
            * ipa-cp.cc (ipcp_bits_lattice::get_value_and_mask): Remove
            unused declaration.
    
    Signed-off-by: Josef Melcr <[email protected]>

Diff:
---
 gcc/ipa-cp.cc | 2 --
 1 file changed, 2 deletions(-)

diff --git a/gcc/ipa-cp.cc b/gcc/ipa-cp.cc
index 76d3b0decda6..b07476afe403 100644
--- a/gcc/ipa-cp.cc
+++ b/gcc/ipa-cp.cc
@@ -971,8 +971,6 @@ ipcp_bits_lattice::set_recipient_only ()
 void
 ipcp_bits_lattice::get_value_and_mask (tree operand, widest_int *valuep, 
widest_int *maskp)
 {
-  wide_int get_nonzero_bits (const_tree);
-
   if (TREE_CODE (operand) == INTEGER_CST)
     {
       *valuep = wi::to_widest (operand);

Reply via email to