aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-ssa-store-merging.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-09-18 11:03:14 +0200
committerMartin Liska <marxin@gcc.gnu.org>2019-09-18 09:03:14 +0000
commita95b474a088187218bd4e73c1c34566e3c3fc83d (patch)
tree47250b52bc68a2a933d520e49025d419155111d1 /gcc/gimple-ssa-store-merging.c
parent58ab1e7607d7e464ba1e4fa3d4986da934903b5c (diff)
downloadgcc-a95b474a088187218bd4e73c1c34566e3c3fc83d.zip
gcc-a95b474a088187218bd4e73c1c34566e3c3fc83d.tar.gz
gcc-a95b474a088187218bd4e73c1c34566e3c3fc83d.tar.bz2
Come up with debug counter for store-merging.
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
Diffstat (limited to 'gcc/gimple-ssa-store-merging.c')
-rw-r--r--gcc/gimple-ssa-store-merging.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/gimple-ssa-store-merging.c b/gcc/gimple-ssa-store-merging.c
index 0bf64b3..5abaa7d 100644
--- a/gcc/gimple-ssa-store-merging.c
+++ b/gcc/gimple-ssa-store-merging.c
@@ -166,6 +166,7 @@
#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;