aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2022-04-12 16:40:11 +0200
committerRichard Biener <rguenther@suse.de>2022-04-12 16:43:08 +0200
commit7c7e78e9c460991349065572e32cac49b20d0432 (patch)
tree15a9bd13ca3c1f1d207fd50d6bab5500b3fffd4b /gcc
parent62082d278d1fc9773539244194061ab32556db4d (diff)
downloadgcc-7c7e78e9c460991349065572e32cac49b20d0432.zip
gcc-7c7e78e9c460991349065572e32cac49b20d0432.tar.gz
gcc-7c7e78e9c460991349065572e32cac49b20d0432.tar.bz2
ipa/104303 - revert overly conservative DCE change
The following reverts the DCE change back to the original behavior which should be handled well during the propagation stage. That should fix the failures Thomas Schwinge is reporting. 2022-04-12 Richard Biener <rguenther@suse.de> PR ipa/104303 * tree-ssa-dce.cc (mark_stmt_if_obviously_necessary): Do not include local escaped memory as obviously necessary stores.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree-ssa-dce.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-dce.cc b/gcc/tree-ssa-dce.cc
index 34ce8ab..2067b71 100644
--- a/gcc/tree-ssa-dce.cc
+++ b/gcc/tree-ssa-dce.cc
@@ -315,7 +315,7 @@ mark_stmt_if_obviously_necessary (gimple *stmt, bool aggressive)
}
if ((gimple_vdef (stmt) && keep_all_vdefs_p ())
- || stmt_may_clobber_global_p (stmt, true))
+ || stmt_may_clobber_global_p (stmt, false))
{
mark_stmt_necessary (stmt, true);
return;