aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-sra.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r--gcc/tree-sra.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
index 3fc1164..cd99b30b 100644
--- a/gcc/tree-sra.c
+++ b/gcc/tree-sra.c
@@ -88,6 +88,7 @@ along with GCC; see the file COPYING3. If not see
#include "params.h"
#include "target.h"
#include "flags.h"
+#include "dbgcnt.h"
/* Enumeration of all aggregate reductions we can do. */
enum sra_mode { SRA_MODE_EARLY_IPA, /* early call regularization */
@@ -2936,7 +2937,7 @@ late_intra_sra (void)
static bool
gate_intra_sra (void)
{
- return flag_tree_sra != 0;
+ return flag_tree_sra != 0 && dbg_cnt (tree_sra);
}