diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2016-05-06 13:02:42 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2016-05-06 13:02:42 +0000 |
commit | 3433ee3503fd172ef5e1eede6dd097b09428bb3f (patch) | |
tree | 1b5f279117fd91a933dcac617314c908f27ca42e /gcc/gimple.c | |
parent | ab4ccf2094a0fa373049a32aad9e3ce3ca80e395 (diff) | |
download | gcc-3433ee3503fd172ef5e1eede6dd097b09428bb3f.zip gcc-3433ee3503fd172ef5e1eede6dd097b09428bb3f.tar.gz gcc-3433ee3503fd172ef5e1eede6dd097b09428bb3f.tar.bz2 |
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
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r-- | gcc/gimple.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c index 25d965c..1a22e82 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -1355,7 +1355,8 @@ gimple_call_same_target_p (const gimple *c1, const gimple *c2) if (gimple_call_internal_p (c1)) return (gimple_call_internal_p (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 return (gimple_call_fn (c1) == gimple_call_fn (c2) || (gimple_call_fndecl (c1) |