From: Bin Cheng Date: Wed, 5 Jul 2017 11:50:09 +0000 (+0000) Subject: tree-loop-distribution.c (pass_loop_distribution::execute): Skip if no loops. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=773d92175e93bbd071ed83cf5d043b9e44bcabb0;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fa8c40cacdd..666159bc8e9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-07-05 Bin Cheng + + * tree-loop-distribution.c (pass_loop_distribution::execute): Skip + if no loops. + 2017-07-05 Bin Cheng * cfgloop.h (struct loop): Add comment. New field orig_loop_num. diff --git a/gcc/tree-loop-distribution.c b/gcc/tree-loop-distribution.c index a60454b5218..9f0c801007c 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 loops_to_be_destroyed; + if (number_of_loops (fun) <= 1) + return 0; + FOR_ALL_BB_FN (bb, fun) { gimple_stmt_iterator gsi;