Commit 520b3022 by Martin Liska Committed by Martin Liska

IPA ICF: compare_operand is split to multiple functions.

	* ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
	name comparison.
	(func_checker::compare_memory_operand): New function.
	(func_checker::compare_operand): Split case to newly
	added functions.
	(func_checker::compare_cst_or_decl): New function.
	(func_checker::compare_gimple_call): Identify
	memory operands.
	(func_checker::compare_gimple_assign): Likewise.
	* ipa-icf-gimple.h: New function.

From-SVN: r219379
parent ce9401b4
2015-01-09 Martin Liska <mliska@suse.cz> 2015-01-09 Martin Liska <mliska@suse.cz>
* ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
name comparison.
(func_checker::compare_memory_operand): New function.
(func_checker::compare_operand): Split case to newly
added functions.
(func_checker::compare_cst_or_decl): New function.
(func_checker::compare_gimple_call): Identify
memory operands.
(func_checker::compare_gimple_assign): Likewise.
* ipa-icf-gimple.h: New function.
2015-01-09 Martin Liska <mliska@suse.cz>
PR ipa/64503 PR ipa/64503
* sreal.c (sreal::dump): Change unsigned format to signed for * sreal.c (sreal::dump): Change unsigned format to signed for
m_exp value. m_exp value.
......
...@@ -203,7 +203,14 @@ public: ...@@ -203,7 +203,14 @@ public:
/* Verifies that tree labels T1 and T2 correspond. */ /* Verifies that tree labels T1 and T2 correspond. */
bool compare_tree_ssa_label (tree t1, tree t2); bool compare_tree_ssa_label (tree t1, tree t2);
/* Function responsible for comparison of handled components T1 and T2. /* Function compare for equality given memory operands T1 and T2. */
bool compare_memory_operand (tree t1, tree t2);
/* Function compare for equality given trees T1 and T2 which
can be either a constant or a declaration type. */
bool compare_cst_or_decl (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 If these components, from functions FUNC1 and FUNC2, are equal, true
is returned. */ is returned. */
bool compare_operand (tree t1, tree t2); bool compare_operand (tree t1, tree t2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment