Come up with debug counter for store-merging.
authorMartin Liska <mliska@suse.cz>
Wed, 18 Sep 2019 09:03:14 +0000 (11:03 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 18 Sep 2019 09:03:14 +0000 (09:03 +0000)
2019-09-18  Martin Liska  <mliska@suse.cz>

* dbgcnt.def (store_merging): New counter.
* gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
Use it in store merging.

From-SVN: r275867

gcc/ChangeLog
gcc/dbgcnt.def
gcc/gimple-ssa-store-merging.c

index 5a4fc2c6c3753c2215a825eab61895f5b398ca41..5407096dff140e089a962e0a5e45e5abe0f2a418 100644 (file)
@@ -1,3 +1,9 @@
+2019-09-18  Martin Liska  <mliska@suse.cz>
+
+       * dbgcnt.def (store_merging): New counter.
+       * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
+       Use it in store merging.
+
 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
 
        * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
index 230072f7bb511fd0c7e754704e451797de9cf3d0..ef981aa6967dd89d1cb605d0a21b65365d33edd9 100644 (file)
@@ -196,3 +196,4 @@ DEBUG_COUNTER (vect_loop)
 DEBUG_COUNTER (vect_slp)
 DEBUG_COUNTER (dom_unreachable_edges)
 DEBUG_COUNTER (match)
+DEBUG_COUNTER (store_merging)
index 0bf64b314d697d36173cb6bc1dc28c96a80ec7a9..5abaa7d18d869ed5b47190ea7080221b8236ee88 100644 (file)
 #include "rtl.h"
 #include "expr.h"      /* For get_bit_range.  */
 #include "optabs-tree.h"
+#include "dbgcnt.h"
 #include "selftest.h"
 
 /* The maximum size (in bits) of the stores this pass should generate.  */
@@ -4195,7 +4196,8 @@ imm_store_chain_info::output_merged_stores ()
   bool ret = false;
   FOR_EACH_VEC_ELT (m_merged_store_groups, i, merged_store)
     {
-      if (output_merged_store (merged_store))
+      if (dbg_cnt (store_merging)
+         && output_merged_store (merged_store))
        {
          unsigned int j;
          store_immediate_info *store;