[gcc(refs/users/marxin/heads/loop-unswitch-improvement-v7)] Simplify condition.
Martin Liska
marxin@gcc.gnu.org
Thu Dec 9 12:48:31 GMT 2021
https://gcc.gnu.org/g:46dcbbbfd8369fee2917cfaeca5cd472fdba04ab
commit 46dcbbbfd8369fee2917cfaeca5cd472fdba04ab
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 3f533b51d83..c1a3f899d98 100644
--- a/gcc/tree-ssa-loop-unswitch.c
+++ b/gcc/tree-ssa-loop-unswitch.c
@@ -516,11 +516,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