diff options
Diffstat (limited to 'gcc/tree-parloops.c')
-rw-r--r-- | gcc/tree-parloops.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c index a46fa51..79b327b 100644 --- a/gcc/tree-parloops.c +++ b/gcc/tree-parloops.c @@ -2253,17 +2253,6 @@ parallelize_loops (void) /* Parallelization. */ -static unsigned -tree_parallelize_loops (void) -{ - if (number_of_loops (cfun) <= 1) - return 0; - - if (parallelize_loops ()) - return TODO_cleanup_cfg | TODO_rebuild_alias; - return 0; -} - namespace { const pass_data pass_data_parallelize_loops = @@ -2289,10 +2278,21 @@ public: /* opt_pass methods: */ virtual bool gate (function *) { return flag_tree_parallelize_loops > 1; } - unsigned int execute () { return tree_parallelize_loops (); } + virtual unsigned int execute (function *); }; // class pass_parallelize_loops +unsigned +pass_parallelize_loops::execute (function *fun) +{ + if (number_of_loops (fun) <= 1) + return 0; + + if (parallelize_loops ()) + return TODO_cleanup_cfg | TODO_rebuild_alias; + return 0; +} + } // anon namespace gimple_opt_pass * |