]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
authorSteven Bosscher <steven@gcc.gnu.org>
Fri, 3 Apr 2009 20:15:40 +0000 (20:15 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Fri, 3 Apr 2009 20:15:40 +0000 (20:15 +0000)
* omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
(execute_lower_omp): Always run but take the short way out if -fopenmp
is not given.
(gate_lower_omp): Remove, forcing the pass manager to always run the
pass and always set PROP_gimple_lomp.
(pass_lower_omp): Remove gate function.
* matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
PROP_trees.  Instead, require it.
* ipa-cp.c (pass_ipa_cp): Likewise.
* ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
(pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
* tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
and PROP_gimple_leh.

From-SVN: r145518

gcc/ChangeLog
gcc/ipa-cp.c
gcc/ipa-inline.c
gcc/matrix-reorg.c
gcc/omp-low.c
gcc/tree-profile.c

index 38851471644353ea9c006f731f9bfabaa74d4f43..79061d34561360123b0cdf89da9715130304bc88 100644 (file)
@@ -1,3 +1,19 @@
+2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
+
+       * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
+       (execute_lower_omp): Always run but take the short way out if -fopenmp
+       is not given.
+       (gate_lower_omp): Remove, forcing the pass manager to always run the
+       pass and always set PROP_gimple_lomp.
+       (pass_lower_omp): Remove gate function.
+       * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
+       PROP_trees.  Instead, require it.
+       * ipa-cp.c (pass_ipa_cp): Likewise.
+       * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
+       (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
+       * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
+       and PROP_gimple_leh.
+
 2009-04-03  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/13146
index 137dd66a3b3dc9537ba32bc89b8b6dbf22fb42f6..21dd8871e0a475f8ff004bb540581093315d9b84 100644 (file)
@@ -1382,7 +1382,7 @@ struct ipa_opt_pass pass_ipa_cp =
   0,                           /* static_pass_number */
   TV_IPA_CONSTANT_PROP,                /* tv_id */
   0,                           /* properties_required */
-  PROP_trees,                  /* properties_provided */
+  0,                           /* properties_provided */
   0,                           /* properties_destroyed */
   0,                           /* todo_flags_start */
   TODO_dump_cgraph | TODO_dump_func |
index 5da4b4c700e89660b2f437a6b765f5a3778de84e..dfc346aec6a49620af206cc173922b1b7172d4c3 100644 (file)
@@ -1561,7 +1561,7 @@ struct gimple_opt_pass pass_early_inline =
   0,                                   /* static_pass_number */
   TV_INLINE_HEURISTICS,                        /* tv_id */
   0,                                   /* properties_required */
-  PROP_cfg,                            /* properties_provided */
+  0,                                   /* properties_provided */
   0,                                   /* properties_destroyed */
   0,                                   /* todo_flags_start */
   TODO_dump_func                       /* todo_flags_finish */
@@ -1591,7 +1591,7 @@ struct simple_ipa_opt_pass pass_ipa_early_inline =
   0,                                   /* static_pass_number */
   TV_INLINE_HEURISTICS,                        /* tv_id */
   0,                                   /* properties_required */
-  PROP_cfg,                            /* properties_provided */
+  0,                                   /* properties_provided */
   0,                                   /* properties_destroyed */
   0,                                   /* todo_flags_start */
   TODO_dump_cgraph                     /* todo_flags_finish */
@@ -1653,7 +1653,7 @@ struct gimple_opt_pass pass_inline_parameters =
   0,                                   /* static_pass_number */
   TV_INLINE_HEURISTICS,                        /* tv_id */
   0,                                   /* properties_required */
-  PROP_cfg,                            /* properties_provided */
+  0,                                   /* properties_provided */
   0,                                   /* properties_destroyed */
   0,                                   /* todo_flags_start */
   0                                    /* todo_flags_finish */
@@ -1772,7 +1772,7 @@ struct ipa_opt_pass pass_ipa_inline =
   0,                                   /* static_pass_number */
   TV_INLINE_HEURISTICS,                        /* tv_id */
   0,                                   /* properties_required */
-  PROP_cfg,                            /* properties_provided */
+  0,                                   /* properties_provided */
   0,                                   /* properties_destroyed */
   TODO_remove_functions,               /* todo_flags_finish */
   TODO_dump_cgraph | TODO_dump_func
index d916f70266cc419b1673703133b673bf70a35236..8f71be5381802e24bb0a38132aff135ad14f2230 100644 (file)
@@ -2421,7 +2421,7 @@ struct simple_ipa_opt_pass pass_ipa_matrix_reorg =
   0,                           /* static_pass_number */
   0,                           /* tv_id */
   0,                           /* properties_required */
-  PROP_trees,                  /* properties_provided */
+  0,                           /* properties_provided */
   0,                           /* properties_destroyed */
   0,                           /* todo_flags_start */
   TODO_dump_cgraph | TODO_dump_func    /* todo_flags_finish */
index ec02b5f50a49a34fd2bea88cc0613fb4dd36ae0f..551af4024b00ec8ad5657e9d1045dedbb72b2feb 100644 (file)
@@ -5456,7 +5456,7 @@ struct gimple_opt_pass pass_expand_omp =
   0,                                   /* static_pass_number */
   0,                                   /* tv_id */
   PROP_gimple_any,                     /* properties_required */
-  PROP_gimple_lomp,                    /* properties_provided */
+  0,                                   /* properties_provided */
   0,                                   /* properties_destroyed */
   0,                                   /* todo_flags_start */
   TODO_dump_func                       /* todo_flags_finish */
@@ -6577,6 +6577,11 @@ execute_lower_omp (void)
 {
   gimple_seq body;
 
+  /* This pass always runs, to provide PROP_gimple_lomp.
+     But there is nothing to do unless -fopenmp is given.  */
+  if (flag_openmp == 0)
+    return 0;
+
   all_contexts = splay_tree_new (splay_tree_compare_pointers, 0,
                                 delete_omp_context);
 
@@ -6604,18 +6609,12 @@ execute_lower_omp (void)
   return 0;
 }
 
-static bool
-gate_lower_omp (void)
-{
-  return flag_openmp != 0;
-}
-
 struct gimple_opt_pass pass_lower_omp = 
 {
  {
   GIMPLE_PASS,
   "omplower",                          /* name */
-  gate_lower_omp,                      /* gate */
+  NULL,                                        /* gate */
   execute_lower_omp,                   /* execute */
   NULL,                                        /* sub */
   NULL,                                        /* next */
index 4467668a8858632e7af13b0f5081987d1d38bfb9..06f113bea091bead2c27eaf716054803a09deab8 100644 (file)
@@ -492,7 +492,7 @@ struct gimple_opt_pass pass_tree_profile =
   0,                                   /* static_pass_number */
   TV_BRANCH_PROB,                      /* tv_id */
   PROP_gimple_leh | PROP_cfg,          /* properties_required */
-  PROP_gimple_leh | PROP_cfg,          /* properties_provided */
+  0,                                   /* properties_provided */
   0,                                   /* properties_destroyed */
   0,                                   /* todo_flags_start */
   TODO_verify_stmts | TODO_dump_func   /* todo_flags_finish */