aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-range.cc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2023-05-23 15:20:56 -0400
committerAndrew MacLeod <amacleod@redhat.com>2023-05-24 08:39:58 -0400
commitcfd6569e9c41181231a8427235d0c0a7ad9262e4 (patch)
treef21a3fb1837d6d09e3da1ea23c23b819fd633145 /gcc/gimple-range.cc
parentd8b058d3ca4ebbef5575105164417f125696f5ce (diff)
downloadgcc-cfd6569e9c41181231a8427235d0c0a7ad9262e4.zip
gcc-cfd6569e9c41181231a8427235d0c0a7ad9262e4.tar.gz
gcc-cfd6569e9c41181231a8427235d0c0a7ad9262e4.tar.bz2
Use negative values to reflect always_current in the temporal cache.
Instead of using 0, use negative timestamps to reflect always_current state. If the value doesn't change, keep the timestamp rather than creating a new one and invalidating any dependencies. PR tree-optimization/109695 * gimple-range-cache.cc (temporal_cache::temporal_value): Return a positive int. (temporal_cache::current_p): Check always_current method. (temporal_cache::set_always_current): Add param and set value appropriately. (temporal_cache::always_current_p): New. (ranger_cache::get_global_range): Adjust. (ranger_cache::set_global_range): set always current first.
Diffstat (limited to 'gcc/gimple-range.cc')
0 files changed, 0 insertions, 0 deletions