aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-icf.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2015-05-18 11:05:15 +0200
committerMartin Liska <marxin@gcc.gnu.org>2015-05-18 09:05:15 +0000
commit7aeb92b4724c0dc16c5322241f8309ddfa3da89f (patch)
tree7bec1b198d35c441a9b09217410c4f2722259455 /gcc/ipa-icf.c
parent68d070ac6aa3ee3a92ab2c20ad956f8f6bd637c2 (diff)
downloadgcc-7aeb92b4724c0dc16c5322241f8309ddfa3da89f.zip
gcc-7aeb92b4724c0dc16c5322241f8309ddfa3da89f.tar.gz
gcc-7aeb92b4724c0dc16c5322241f8309ddfa3da89f.tar.bz2
IPA ICF: add support for debug counter.
* dbgcnt.def: Add new counter. * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter. From-SVN: r223288
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 3c4ac05..e7a317a 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);
}
}