Commit 3433ee35 by Nathan Sidwell Committed by Nathan Sidwell

gimple.c (gimple_call_same_target_p): Unique functions are eq.

	* gimple.c (gimple_call_same_target_p): Unique functions are eq.
	* tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
	equality first.

From-SVN: r235964
parent ab4ccf20
2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
* gimple.c (gimple_call_same_target_p): Unique functions are eq.
* tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
equality first.
2016-05-06 Richard Biener <rguenther@suse.de> 2016-05-06 Richard Biener <rguenther@suse.de>
PR tree-optimization/70948 PR tree-optimization/70948
......
...@@ -1355,7 +1355,8 @@ gimple_call_same_target_p (const gimple *c1, const gimple *c2) ...@@ -1355,7 +1355,8 @@ gimple_call_same_target_p (const gimple *c1, const gimple *c2)
if (gimple_call_internal_p (c1)) if (gimple_call_internal_p (c1))
return (gimple_call_internal_p (c2) return (gimple_call_internal_p (c2)
&& gimple_call_internal_fn (c1) == gimple_call_internal_fn (c2) && gimple_call_internal_fn (c1) == gimple_call_internal_fn (c2)
&& !gimple_call_internal_unique_p (as_a <const gcall *> (c1))); && (!gimple_call_internal_unique_p (as_a <const gcall *> (c1))
|| c1 == c2));
else else
return (gimple_call_fn (c1) == gimple_call_fn (c2) return (gimple_call_fn (c1) == gimple_call_fn (c2)
|| (gimple_call_fndecl (c1) || (gimple_call_fndecl (c1)
......
...@@ -538,6 +538,9 @@ same_succ::equal (const same_succ *e1, const same_succ *e2) ...@@ -538,6 +538,9 @@ same_succ::equal (const same_succ *e1, const same_succ *e2)
gimple *s1, *s2; gimple *s1, *s2;
basic_block bb1, bb2; basic_block bb1, bb2;
if (e1 == e2)
return 1;
if (e1->hashval != e2->hashval) if (e1->hashval != e2->hashval)
return 0; return 0;
......
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