[gcc(refs/users/marxin/heads/loop-unswitch-improvement-v7)] Simplify condition.

Martin Liska marxin@gcc.gnu.org
Wed Dec 8 10:17:45 GMT 2021


https://gcc.gnu.org/g:535d9440140bd2bbcc7b1d0ac30ea16ffdeb400c

commit 535d9440140bd2bbcc7b1d0ac30ea16ffdeb400c
Author: Martin Liska <mliska@suse.cz>
Date:   Tue Dec 7 15:25:17 2021 +0100

    Simplify condition.

Diff:
---
 gcc/tree-ssa-loop-unswitch.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c
index a99a2b7a80b..6e5dc923fba 100644
--- a/gcc/tree-ssa-loop-unswitch.c
+++ b/gcc/tree-ssa-loop-unswitch.c
@@ -515,11 +515,7 @@ evaluate_control_stmt_using_entry_checks (gimple *stmt,
 					  const auto_edge_flag &ignored_edge_flag,
 					  hash_set<edge> *ignored_edges)
 {
-  tree lhs = NULL_TREE;
-
-  // FIXME: remove?
-  if (predicate_path.is_empty ())
-    return NULL_TREE;
+  tree lhs;
 
   gcond *condition = dyn_cast<gcond *> (stmt);
   gswitch *swtch = dyn_cast<gswitch *> (stmt);


More information about the Gcc-cvs mailing list