[gcc(refs/users/wschmidt/heads/builtins4)] rs6000: Put in a timevar for initialization

William Schmidt wschmidt@gcc.gnu.org
Thu Nov 5 23:15:02 GMT 2020


https://gcc.gnu.org/g:babdd39b9dc5192e485f3260f86b3d910982b0b2

commit babdd39b9dc5192e485f3260f86b3d910982b0b2
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date:   Thu Nov 5 18:14:41 2020 -0500

    rs6000: Put in a timevar for initialization
    
    2020-11-05  Bill Schmidt  <wschmidt@linux.ibm.com>
    
            * config/rs6000/rs6000-gen-builtins.c (write_init_file): Use
            TV_BILL timevar.
            * timevar.def (TV_BILL): New timevar.

Diff:
---
 gcc/config/rs6000/rs6000-gen-builtins.c | 3 +++
 gcc/timevar.def                         | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/gcc/config/rs6000/rs6000-gen-builtins.c b/gcc/config/rs6000/rs6000-gen-builtins.c
index 0dca6d0d558..3062d10531a 100644
--- a/gcc/config/rs6000/rs6000-gen-builtins.c
+++ b/gcc/config/rs6000/rs6000-gen-builtins.c
@@ -2608,6 +2608,7 @@ write_init_file ()
   fprintf (init_file, "#include \"tree.h\"\n");
   fprintf (init_file, "#include \"langhooks.h\"\n");
   fprintf (init_file, "#include \"insn-codes.h\"\n");
+  fprintf (init_file, "#include \"timevar.h\"\n");
   fprintf (init_file, "#include \"rs6000-builtins.h\"\n");
   fprintf (init_file, "\n");
 
@@ -2665,12 +2666,14 @@ write_init_file ()
   fprintf (init_file, "  hashval_t hash;\n");
   fprintf (init_file, "  ovlddata **oslot;\n");
   fprintf (init_file, "  ovlddata *ovldaddr;\n\n");
+  fprintf (init_file, "  timevar_start (TV_BILL);\n");
   rbt_inorder_callback (&fntype_rbt, fntype_rbt.rbt_root, write_fntype_init);
   fprintf (init_file, "\n");
 
   write_init_bif_table ();
   write_init_ovld_table ();
 
+  fprintf (init_file, "  timevar_stop (TV_BILL);\n");
   fprintf (init_file, "}\n");
   return 1;
 }
diff --git a/gcc/timevar.def b/gcc/timevar.def
index 08c21c04009..cefa3b8f4b2 100644
--- a/gcc/timevar.def
+++ b/gcc/timevar.def
@@ -335,3 +335,6 @@ DEFTIMEVAR (TV_ANALYZER_WORKLIST     , "analyzer: processing worklist")
 DEFTIMEVAR (TV_ANALYZER_DUMP         , "analyzer: dump")
 DEFTIMEVAR (TV_ANALYZER_DIAGNOSTICS  , "analyzer: emitting diagnostics")
 DEFTIMEVAR (TV_ANALYZER_SHORTEST_PATHS, "analyzer: shortest paths")
+
+/* Bill's timevar!  */
+DEFTIMEVAR (TV_BILL, "builtin initialization")


More information about the Gcc-cvs mailing list