diff options
author | Martin Liska <mliska@suse.cz> | 2017-08-30 14:38:31 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-08-30 12:38:31 +0000 |
commit | 6cc30cb4ff182583ffbebe9819973b5b693322fd (patch) | |
tree | 7aa4046e7e1ba187d40f28ab3b802965c1bb0c48 /gcc/ipa-icf-gimple.h | |
parent | 357b7604e55516bd3e1f44d1670d2248478a9b57 (diff) |
Fix IPA ICF with ASM statements (PR inline-asm/82001).
2017-08-30 Martin Liska <mliska@suse.cz>
PR inline-asm/82001
* ipa-icf-gimple.c (func_checker::compare_tree_list_operand):
Rename to ...
(func_checker::compare_asm_inputs_outputs): ... this function.
(func_checker::compare_gimple_asm): Use the function to compare
also ASM constrains.
* ipa-icf-gimple.h: Rename the function.
2017-08-30 Martin Liska <mliska@suse.cz>
PR inline-asm/82001
* gcc.dg/ipa/pr82001.c: New test.
From-SVN: r251530
Diffstat (limited to 'gcc/ipa-icf-gimple.h')
-rw-r--r-- | gcc/ipa-icf-gimple.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ipa-icf-gimple.h b/gcc/ipa-icf-gimple.h index da904b5897e..7e69024165f 100644 --- a/gcc/ipa-icf-gimple.h +++ b/gcc/ipa-icf-gimple.h @@ -215,9 +215,9 @@ public: is returned. */ bool compare_operand (tree t1, tree t2); - /* Compares two tree list operands T1 and T2 and returns true if these - two trees are semantically equivalent. */ - bool compare_tree_list_operand (tree t1, tree t2); + /* Compares GIMPLE ASM inputs (or outputs) where we iterate tree chain + and compare both TREE_PURPOSEs and TREE_VALUEs. */ + bool compare_asm_inputs_outputs (tree t1, tree t2); /* Verifies that trees T1 and T2, representing function declarations are equivalent from perspective of ICF. */ |