-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename nonzero_bits to known_zero_bits.
The name nonzero_bits is confusing. We're not tracking nonzero bits. We're tracking known-zero bits, or at the worst we're tracking "maye nonzero bits". But really, the only thing we're sure about in the "nonzero" bits are the bits that are zero, which are known to be 0. We're not tracking nonzero bits. I know we've been carrying around this name forever, but the fact that both of the maintainers of the code *HATE* it, should be telling. Also, we'd also like to track known-one bits in the irange, so it's best to keep the nomenclature consistent. Andrew, are you ok with this naming, or would you prefer something else? gcc/ChangeLog: * asan.cc (handle_builtin_alloca): Rename *nonzero* to *known_zero*. * fold-const.cc (expr_not_equal_to): Same. (tree_nonzero_bits): Same. * gimple-range-op.cc: Same. * ipa-cp.cc (ipcp_bits_lattice::get_value_and_mask): Same. * ipa-prop.cc (ipa_compute_jump_functions_for_edge): Same. (ipcp_update_bits): Same. * match.pd: Same. * range-op.cc (operator_lt::fold_range): Same. (operator_cast::fold_range): Same. (operator_bitwise_and::fold_range): Same. (set_nonzero_range_from_mask): Same. (set_known_zero_range_from_mask): Same. (operator_bitwise_and::simple_op1_range_solver): Same. (operator_bitwise_and::op1_range): Same. (range_op_cast_tests): Same. (range_op_bitwise_and_tests): Same. * tree-data-ref.cc (split_constant_offset): Same. * tree-ssa-ccp.cc (get_default_value): Same. (ccp_finalize): Same. (evaluate_stmt): Same. * tree-ssa-dom.cc (dom_opt_dom_walker::set_global_ranges_from_unreachable_edges): Same. * tree-ssa-reassoc.cc (optimize_range_tests_var_bound): Same. * tree-ssanames.cc (set_nonzero_bits): Same. (set_known_zero_bits): Same. (get_nonzero_bits): Same. (get_known_zero_bits): Same. (ssa_name_has_boolean_range): Same. * tree-ssanames.h (set_nonzero_bits): Same. (get_nonzero_bits): Same. (set_known_zero_bits): Same. (get_known_zero_bits): Same. * tree-vect-patterns.cc (vect_get_range_info): Same. * tree-vrp.cc (maybe_set_nonzero_bits): Same. (maybe_set_known_zero_bits): Same. (vrp_asserts::remove_range_assertions): Same. * tree-vrp.h (maybe_set_nonzero_bits): Same. (maybe_set_known_zero_bits): Same. * tree.cc (tree_ctz): Same. * value-range-pretty-print.cc (vrange_printer::print_irange_bitmasks): Same. * value-range-storage.cc (irange_storage_slot::set_irange): Same. (irange_storage_slot::get_irange): Same. (irange_storage_slot::dump): Same. * value-range-storage.h: Same. * value-range.cc (irange::operator=): Same. (irange::copy_to_legacy): Same. (irange::irange_set): Same. (irange::irange_set_anti_range): Same. (irange::set): Same. (irange::verify_range): Same. (irange::legacy_equal_p): Same. (irange::operator==): Same. (irange::contains_p): Same. (irange::irange_single_pair_union): Same. (irange::irange_union): Same. (irange::irange_intersect): Same. (irange::invert): Same. (irange::get_nonzero_bits_from_range): Same. (irange::get_known_zero_bits_from_range): Same. (irange::set_range_from_nonzero_bits): Same. (irange::set_range_from_known_zero_bits): Same. (irange::set_nonzero_bits): Same. (irange::set_known_zero_bits): Same. (irange::get_nonzero_bits): Same. (irange::get_known_zero_bits): Same. (irange::intersect_nonzero_bits): Same. (irange::intersect_known_zero_bits): Same. (irange::union_nonzero_bits): Same. (irange::union_known_zero_bits): Same. (range_tests_nonzero_bits): Same. * value-range.h (irange::varying_compatible_p): Same. (gt_ggc_mx): Same. (gt_pch_nx): Same. (irange::set_undefined): Same. (irange::set_varying): Same.
- Loading branch information
1 parent
bf3b532
commit 6e6f30a
Showing
22 changed files
with
148 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.