Use infer instead of side-effect for ranges.
authorAndrew MacLeod <amacleod@redhat.com>
Tue, 24 May 2022 15:32:42 +0000 (11:32 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Wed, 25 May 2022 14:33:07 +0000 (10:33 -0400)
commit156d7d8dbc8d65d3958486bc4112a7279935e47d
tree0a96fbbaa12e5190dcfe6ef82d0a16373992e4eb
parent63f198553d3940495bfaa49da30b2ce93375c916
Use infer instead of side-effect for ranges.

Rename the files and classes to reflect the term infer rather than side-effect.

* Makefile.in (OBJS): Use gimple-range-infer.o.
* gimple-range-cache.cc (ranger_cache::fill_block_cache): Change msg.
(ranger_cache::range_from_dom): Rename var side_effect to infer.
(ranger_cache::apply_inferred_ranges): Rename from apply_side_effects.
* gimple-range-cache.h: Include gimple-range-infer.h.
(class ranger_cache): Adjust prototypes, use infer_range_manager.
* gimple-range-infer.cc: Rename from gimple-range-side-effects.cc.
(gimple_infer_range::*): Rename from stmt_side_effects.
(infer_range_manager::*): Rename from side_effect_manager.
* gimple-range-side-effect.cc: Rename.
* gimple-range-side-effect.h: Rename.
* gimple-range-infer.h: Rename from gimple-range-side-effects.h.
(class gimple_infer_range): Rename from stmt_side_effects.
(class infer_range_manager): Rename from side_effect_manager.
* gimple-range.cc (gimple_ranger::register_inferred_ranges): Rename
from register_side_effects.
* gimple-range.h (register_inferred_ranges): Adjust prototype.
* range-op.h: Adjust comment.
* tree-vrp.cc (rvrp_folder::pre_fold_bb): Use register_inferred_ranges.
(rvrp_folder::post_fold_bb): Use register_inferred_ranges.
gcc/Makefile.in
gcc/gimple-range-cache.cc
gcc/gimple-range-cache.h
gcc/gimple-range-infer.cc [moved from gcc/gimple-range-side-effect.cc with 79% similarity]
gcc/gimple-range-infer.h [moved from gcc/gimple-range-side-effect.h with 76% similarity]
gcc/gimple-range.cc
gcc/gimple-range.h
gcc/range-op.h
gcc/tree-vrp.cc