summaryrefslogtreecommitdiff
path: root/gcc/ipa-icf.c
diff options
context:
space:
mode:
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-18 09:05:15 +0000
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-18 09:05:15 +0000
commitbf4fc9191fbcad6d7b2dd4fbe04b4d176f04e3d9 (patch)
tree7bec1b198d35c441a9b09217410c4f2722259455 /gcc/ipa-icf.c
parent0c976409ef4be2348966a7dabf59cf527bb68146 (diff)
downloadgcc-bf4fc9191fbcad6d7b2dd4fbe04b4d176f04e3d9.tar.gz
IPA ICF: add support for debug counter.
* dbgcnt.def: Add new counter. * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223288 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-icf.c')
-rw-r--r--gcc/ipa-icf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c
index 3c4ac05681b..e7a317ab79d 100644
--- a/gcc/ipa-icf.c
+++ b/gcc/ipa-icf.c
@@ -123,6 +123,7 @@ along with GCC; see the file COPYING3. If not see
#include "ipa-icf-gimple.h"
#include "ipa-icf.h"
#include "stor-layout.h"
+#include "dbgcnt.h"
using namespace ipa_icf_gimple;
@@ -3453,7 +3454,8 @@ sem_item_optimizer::merge_classes (unsigned int prev_class_count)
alias->dump_to_file (dump_file);
}
- merged_p |= source->merge (alias);
+ if (dbg_cnt (merged_ipa_icf))
+ merged_p |= source->merge (alias);
}
}