diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-loop-distribution.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fa8c40c..666159b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2017-07-05 Bin Cheng <bin.cheng@arm.com> + * tree-loop-distribution.c (pass_loop_distribution::execute): Skip + if no loops. + +2017-07-05 Bin Cheng <bin.cheng@arm.com> + * cfgloop.h (struct loop): Add comment. New field orig_loop_num. * cfgloopmanip.c (lv_adjust_loop_entry_edge): Comment change. * internal-fn.c (expand_LOOP_DIST_ALIAS): New function. 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; |