diff options
author | Richard Biener <rguenther@suse.de> | 2023-12-04 10:46:11 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-12-04 12:53:55 +0100 |
commit | de0ab339a795352c843f6e9b2dfce222f26588de (patch) | |
tree | 9ef451aa44f70cf0b093a79961dcdb7ddd3241ed /gcc/function.h | |
parent | 7804b4e24cd16283067225d4c2c4a4483a2b31bc (diff) | |
download | gcc-de0ab339a795352c843f6e9b2dfce222f26588de.zip gcc-de0ab339a795352c843f6e9b2dfce222f26588de.tar.gz gcc-de0ab339a795352c843f6e9b2dfce222f26588de.tar.bz2 |
tree-optimization/112827 - corrupt SCEV cache during SCCP
The following avoids corrupting the SCEV cache by my last change
to propagate constant final values immediately. The easiest fix
is to keep a dead initialization around.
PR tree-optimization/112827
* tree-scalar-evolution.cc (final_value_replacement_loop):
Do not release SSA name but keep a dead initialization around.
* gcc.dg/torture/pr112827-1.c: New testcase.
* gcc.dg/torture/pr112827-2.c: Likewise.
Diffstat (limited to 'gcc/function.h')
0 files changed, 0 insertions, 0 deletions