https://gcc.gnu.org/g:371e21d0050f00c8afff4ad89264f4a9de330069

commit 371e21d0050f00c8afff4ad89264f4a9de330069
Author: Andrew Stubbs <[email protected]>
Date:   Mon Apr 20 15:05:25 2026 +0000

    timevar.def: Add time tracking for SIMT passes
    
    The SIMT passes are somewhat expensive.  This allows us to measure them
    separately.
    
    gcc/ChangeLog:
    
            * timevar.def (TV_SIMT): New timevar.
            * config/gcn/gcn-simt-vectorize.cc (pass_data_gcn_simt_vectorize):
            Use TV_SIMT.
            * config/gcn/gcn-simt-cbranch.cc (pass_data_gcn_simt_cbranch):
            Likewise.

Diff:
---
 gcc/config/gcn/gcn-simt-cbranch.cc   | 2 +-
 gcc/config/gcn/gcn-simt-vectorize.cc | 2 +-
 gcc/timevar.def                      | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/gcc/config/gcn/gcn-simt-cbranch.cc 
b/gcc/config/gcn/gcn-simt-cbranch.cc
index 0d805ab363b3..abd2a5389b30 100644
--- a/gcc/config/gcn/gcn-simt-cbranch.cc
+++ b/gcc/config/gcn/gcn-simt-cbranch.cc
@@ -119,7 +119,7 @@ const pass_data pass_data_gcn_simt_cbranch =
   RTL_PASS, // type
   "simt_cbranch", // name
   OPTGROUP_NONE, // optinfo_flags
-  TV_NONE, // tv_id
+  TV_SIMT, // tv_id
   0, // properties_required
   0, // properties_provided
   0, // properties_destroyed
diff --git a/gcc/config/gcn/gcn-simt-vectorize.cc 
b/gcc/config/gcn/gcn-simt-vectorize.cc
index 47f05b604c3f..1c5f470cb530 100644
--- a/gcc/config/gcn/gcn-simt-vectorize.cc
+++ b/gcc/config/gcn/gcn-simt-vectorize.cc
@@ -85,7 +85,7 @@ const pass_data pass_data_gcn_simt_vectorize =
   RTL_PASS, // type
   "simt_vect", // name
   OPTGROUP_NONE, // optinfo_flags
-  TV_NONE, // tv_id
+  TV_SIMT, // tv_id
   0, // properties_required
   0, // properties_provided
   0, // properties_destroyed
diff --git a/gcc/timevar.def b/gcc/timevar.def
index 3824caa01bc2..95311fa46ccd 100644
--- a/gcc/timevar.def
+++ b/gcc/timevar.def
@@ -322,6 +322,7 @@ DEFTIMEVAR (TV_WARN_ACCESS           , "access analysis")
 DEFTIMEVAR (TV_GIMPLE_CRC_OPTIMIZATION, "crc optimization")
 DEFTIMEVAR (TV_EXT_DCE               , "ext dce")
 DEFTIMEVAR (TV_FOLD_MEM_OFFSETS      , "fold mem offsets")
+DEFTIMEVAR (TV_SIMT                  , "SIMT conversion")
 
 /* Everything else in rest_of_compilation not included above.  */
 DEFTIMEVAR (TV_EARLY_LOCAL          , "early local passes")

Reply via email to