From: Richard Biener Date: Tue, 12 Apr 2022 14:40:11 +0000 (+0200) Subject: ipa/104303 - revert overly conservative DCE change X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c7e78e9c460991349065572e32cac49b20d0432;p=test_jj.git 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 PR ipa/104303 * tree-ssa-dce.cc (mark_stmt_if_obviously_necessary): Do not include local escaped memory as obviously necessary stores. --- 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;