diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2023-04-25 15:33:52 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2023-04-26 15:17:08 -0400 |
commit | 40c7f943e882e8c5eccf45fc28146559f446764d (patch) | |
tree | 395f93c6cc9d44f9c3f82122efb30daccfd795d1 /gcc/gimple-range-path.cc | |
parent | 469b655b30dae58b41232b0dea5d1ccc072356a9 (diff) | |
download | gcc-40c7f943e882e8c5eccf45fc28146559f446764d.zip gcc-40c7f943e882e8c5eccf45fc28146559f446764d.tar.gz gcc-40c7f943e882e8c5eccf45fc28146559f446764d.tar.bz2 |
Don't save ssa-name pointer in dependency cache.
If the direct dependence fields point directly to an ssa-name,
its possible that an optimization frees an ssa-name, and the value
pointed to may now be in the free list. Simply maintain the ssa
version number instead.
PR tree-optimization/109417
* gimple-range-gori.cc (range_def_chain::register_dependency):
Save the ssa version number, not the pointer.
(gori_compute::may_recompute_p): No need to check if a dependency
is in the free list.
* gimple-range-gori.h (class range_def_chain): Change ssa1 and ssa2
fields to be unsigned int instead of trees.
(ange_def_chain::depend1): Adjust.
(ange_def_chain::depend2): Adjust.
* gimple-range.h: Include "ssa.h" to inline ssa_name().
Diffstat (limited to 'gcc/gimple-range-path.cc')
0 files changed, 0 insertions, 0 deletions