summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-threadupdate.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2016-08-05 08:00:00 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2016-08-05 08:00:00 +0000
commit6c1d60a219b83f17a824f5b04dd04ffa3a1c7c37 (patch)
tree076d6c25ac19275ee6592d1e08c2a19f6ae69998 /gcc/tree-ssa-threadupdate.c
parentee2810081e4008656ffb5a2f37a5a68d5d477e7e (diff)
tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary restriction on threading to a loop header.
2016-08-05 Richard Biener <rguenther@suse.de> * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary restriction on threading to a loop header. From-SVN: r239164
Diffstat (limited to 'gcc/tree-ssa-threadupdate.c')
-rw-r--r--gcc/tree-ssa-threadupdate.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c
index 1ff007a495a..66d919c95ce 100644
--- a/gcc/tree-ssa-threadupdate.c
+++ b/gcc/tree-ssa-threadupdate.c
@@ -1531,10 +1531,8 @@ thread_block_1 (basic_block bb, bool noloop_only, bool joiners)
threading path that crosses loop boundaries. We do not try
and thread this elsewhere, so just cancel the jump threading
request by clearing the AUX field now. */
- if ((bb->loop_father != e2->src->loop_father
- && !loop_exit_edge_p (e2->src->loop_father, e2))
- || (e2->src->loop_father != e2->dest->loop_father
- && !loop_exit_edge_p (e2->src->loop_father, e2)))
+ if (bb->loop_father != e2->src->loop_father
+ && !loop_exit_edge_p (e2->src->loop_father, e2))
{
/* Since this case is not handled by our special code
to thread through a loop header, we must explicitly