diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2023-05-18 11:17:57 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2023-06-27 11:25:48 +0200 |
commit | 065cc8767828c0257f5651579f36e4bca0937d73 (patch) | |
tree | 86e10c11e58385fb54895ebb50e2f7c56a27e1d2 /gcc/value-range.cc | |
parent | ebe7c586f62b1c5218b19c3c6853163287b3c887 (diff) | |
download | gcc-065cc8767828c0257f5651579f36e4bca0937d73.zip gcc-065cc8767828c0257f5651579f36e4bca0937d73.tar.gz gcc-065cc8767828c0257f5651579f36e4bca0937d73.tar.bz2 |
Convert ipa_jump_func to use ipa_vr instead of a value_range.
This patch converts the ipa_jump_func code to use the type agnostic
ipa_vr suitable for GC instead of value_range which is integer specific.
I've disabled the range cacheing to simplify the patch for review, but
it is handled in the next patch in the series.
gcc/ChangeLog:
* ipa-cp.cc (ipa_vr_operation_and_type_effects): New.
* ipa-prop.cc (ipa_get_value_range): Adjust for ipa_vr.
(ipa_set_jfunc_vr): Take a range.
(ipa_compute_jump_functions_for_edge): Pass range to
ipa_set_jfunc_vr.
(ipa_write_jump_function): Call streamer write helper.
(ipa_read_jump_function): Call streamer read helper.
* ipa-prop.h (class ipa_vr): Change m_vr to an ipa_vr.
Diffstat (limited to 'gcc/value-range.cc')
0 files changed, 0 insertions, 0 deletions