aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-loop-distribution.c
diff options
context:
space:
mode:
authorBin Cheng <bin.cheng@arm.com>2017-07-05 11:50:09 +0000
committerBin Cheng <amker@gcc.gnu.org>2017-07-05 11:50:09 +0000
commit773d92175e93bbd071ed83cf5d043b9e44bcabb0 (patch)
treef239150569edddb3cfb7c5a751671c43fdf3201b /gcc/tree-loop-distribution.c
parent542e7230c0dd16977671486414207ef1a3bd52e4 (diff)
downloadgcc-773d92175e93bbd071ed83cf5d043b9e44bcabb0.zip
gcc-773d92175e93bbd071ed83cf5d043b9e44bcabb0.tar.gz
gcc-773d92175e93bbd071ed83cf5d043b9e44bcabb0.tar.bz2
tree-loop-distribution.c (pass_loop_distribution::execute): Skip if no loops.
* tree-loop-distribution.c (pass_loop_distribution::execute): Skip if no loops. From-SVN: r249984
Diffstat (limited to 'gcc/tree-loop-distribution.c')
-rw-r--r--gcc/tree-loop-distribution.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-loop-distribution.c b/gcc/tree-loop-distribution.c
index a60454b..9f0c801 100644
--- a/gcc/tree-loop-distribution.c
+++ b/gcc/tree-loop-distribution.c
@@ -1758,6 +1758,9 @@ pass_loop_distribution::execute (function *fun)
control_dependences *cd = NULL;
auto_vec<loop_p> loops_to_be_destroyed;
+ if (number_of_loops (fun) <= 1)
+ return 0;
+
FOR_ALL_BB_FN (bb, fun)
{
gimple_stmt_iterator gsi;