diff options
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 1aea162fe2c..ca95823f6a2 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -5351,12 +5351,7 @@ remove_statement (tree stmt, bool including_defined_name) { if (TREE_CODE (stmt) == PHI_NODE) { - if (!including_defined_name) - { - /* Prevent the ssa name defined by the statement from being removed. */ - SET_PHI_RESULT (stmt, NULL); - } - remove_phi_node (stmt, NULL_TREE); + remove_phi_node (stmt, NULL_TREE, including_defined_name); } else { |