Hi!
get_known_nonzero_bits_1 function comment a few lines earlier says
correctly it returns 0 for unknown (unlike get_nonzero_bits{,_1}
which return -1 for unknown).
Committed to trunk as obvious.
2025-11-19 Jakub Jelinek <[email protected]>
* tree-ssanames.cc (get_known_nonzero_bits): Fix a pasto in
function comment, this function returns 0 if unknown rather
than -1.
--- gcc/tree-ssanames.cc.jj 2025-11-17 09:39:39.930469211 +0100
+++ gcc/tree-ssanames.cc 2025-11-19 11:50:44.190960895 +0100
@@ -594,7 +594,7 @@ get_known_nonzero_bits_1 (const_tree nam
}
/* Return a wide_int with known non-zero bits in SSA_NAME
- NAME, the constant for INTEGER_CST, or -1 if unknown.
+ NAME, the constant for INTEGER_CST, or 0 if unknown.
In addition to what get_known_nonzero_bits_1 handles, this handles one
level of BIT_IOR_EXPR, either as a def_stmt or tree directly. */
Jakub