aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-10-31 16:58:06 +0100
committerMartin Liska <marxin@gcc.gnu.org>2019-10-31 15:58:06 +0000
commit946b4a68b3766ddbdb2290855c5167bd30c933a0 (patch)
treec36fa07a34dc9e2a1277c496891ec79e51460605
parent1a9e325fbfc9530a4414f9f9117b30b9cd8ad3c1 (diff)
downloadgcc-946b4a68b3766ddbdb2290855c5167bd30c933a0.zip
gcc-946b4a68b3766ddbdb2290855c5167bd30c933a0.tar.gz
gcc-946b4a68b3766ddbdb2290855c5167bd30c933a0.tar.bz2
Remove dead code in IPA ICF.
2019-10-31 Martin Liska <mliska@suse.cz> * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove. * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label and compare_memory_operand. From-SVN: r277675
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/ipa-icf-gimple.c8
-rw-r--r--gcc/ipa-icf-gimple.h6
3 files changed, 6 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c068ac8..5ce04fe 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2019-10-31 Martin Liska <mliska@suse.cz>
+
+ * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
+ * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
+ and compare_memory_operand.
+
2019-10-31 Jakub Jelinek <jakub@redhat.com>
* configure.ac: Compute and substitute omp_device_properties and
diff --git a/gcc/ipa-icf-gimple.c b/gcc/ipa-icf-gimple.c
index 990ee04..7e4ffc8 100644
--- a/gcc/ipa-icf-gimple.c
+++ b/gcc/ipa-icf-gimple.c
@@ -652,14 +652,6 @@ func_checker::compare_gimple_cond (gimple *s1, gimple *s2)
return compare_operand (t1, t2);
}
-/* Verifies that tree labels T1 and T2 correspond in FUNC1 and FUNC2. */
-
-bool
-func_checker::compare_tree_ssa_label (tree t1, tree t2)
-{
- return compare_operand (t1, t2);
-}
-
/* Verifies for given GIMPLE_LABEL stmts S1 and S2 that
label statements are semantically equivalent. */
diff --git a/gcc/ipa-icf-gimple.h b/gcc/ipa-icf-gimple.h
index 25dff31..8213e4f 100644
--- a/gcc/ipa-icf-gimple.h
+++ b/gcc/ipa-icf-gimple.h
@@ -190,12 +190,6 @@ public:
/* Verification function for declaration trees T1 and T2. */
bool compare_decl (const_tree t1, const_tree t2);
- /* Verifies that tree labels T1 and T2 correspond. */
- bool compare_tree_ssa_label (tree t1, tree t2);
-
- /* Function compare for equality given memory operands T1 and T2. */
- bool compare_memory_operand (tree t1, tree t2);
-
/* Function responsible for comparison of various operands T1 and T2.
If these components, from functions FUNC1 and FUNC2, are equal, true
is returned. */