]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ipa-inline.c (gate_ipa_inline): Remove.
authorAldy Hernandez <aldyh@redhat.com>
Tue, 17 Dec 2013 20:18:28 +0000 (20:18 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Tue, 17 Dec 2013 20:18:28 +0000 (20:18 +0000)
* ipa-inline.c (gate_ipa_inline): Remove.
(const pass_data pass_data_ipa_inline): Unset has_gate.
(class pass_ipa_inline): Remove gate() method.

From-SVN: r206066

gcc/ChangeLog
gcc/ipa-inline.c
gcc/tree-inline.h

index 3c7b0d57ac9b615fcdb54a703972c0f72e5994fa..e7989720c121c710f1e1a34cfe0e35a7bb29c326 100644 (file)
@@ -1,3 +1,9 @@
+2013-12-17  Aldy Hernandez  <aldyh@redhat.com>
+
+       * ipa-inline.c (gate_ipa_inline): Remove.
+       (const pass_data pass_data_ipa_inline): Unset has_gate.
+       (class pass_ipa_inline): Remove gate() method.
+
 2013-12-17  Jan Hubicka  <hubicka@ucw.cz>
 
        * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
index 38157caf829030e99dd02eeb91cb7b03638997e5..9fd5d4183d0cf5586b5b934b72f625b2ea78c836 100644 (file)
@@ -2339,19 +2339,6 @@ make_pass_early_inline (gcc::context *ctxt)
   return new pass_early_inline (ctxt);
 }
 
-
-/* When to run IPA inlining.  Inlining of always-inline functions
-   happens during early inlining.
-
-   Enable inlining unconditoinally, because callgraph redirection
-   happens here.   */
-
-static bool
-gate_ipa_inline (void)
-{
-  return true;
-}
-
 namespace {
 
 const pass_data pass_data_ipa_inline =
@@ -2359,7 +2346,7 @@ const pass_data pass_data_ipa_inline =
   IPA_PASS, /* type */
   "inline", /* name */
   OPTGROUP_INLINE, /* optinfo_flags */
-  true, /* has_gate */
+  false, /* has_gate */
   true, /* has_execute */
   TV_IPA_INLINING, /* tv_id */
   0, /* properties_required */
@@ -2386,7 +2373,6 @@ public:
   {}
 
   /* opt_pass methods: */
-  bool gate () { return gate_ipa_inline (); }
   unsigned int execute () { return ipa_inline (); }
 
 }; // class pass_ipa_inline
index 00c0b0cf7380c5c6aae6478bcb53e246458473a3..210f312b36a225e1b1814c2cbdb0c183c430d001 100644 (file)
@@ -162,8 +162,8 @@ typedef struct eni_weights_d
   /* Cost of return.  */
   unsigned return_cost;
 
-  /* True when time of statemnt should be estimated.  Thus i.e
-     cost of switch statement is logarithmic rather than linear in number
+  /* True when time of statement should be estimated.  Thus, the
+     cost of switch statement is logarithmic rather than linear in number
      of cases.  */
   bool time_based;
 } eni_weights;