diff options
author | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-19 14:29:52 +0000 |
---|---|---|
committer | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-19 14:29:52 +0000 |
commit | 1ea6a73cf7bb61c4a80ad96d66329038114d0d79 (patch) | |
tree | 8489ea3ed78727eeb377ad35611c3a1779e5bb14 /gcc/omp-low.c | |
parent | e1b3b79beacf0e6747eb7e6a1055d3cd0a436327 (diff) | |
download | gcc-1ea6a73cf7bb61c4a80ad96d66329038114d0d79.tar.gz |
* omp-low.c (optimize_omp_library_calls): Use types_compatible_p
instead of comparing TYPE_MAIN_VARIANT for equality.
* tree-vect-patterns.c (vect_recog_dot_prod_pattern,
vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
* tree-vect-loop.c (vect_is_simple_reduction): Ditto.
* gimplify.c (goa_lhs_expr_p): Ditto and use
STRIP_USELESS_TYPE_CONVERSION.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150936 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r-- | gcc/omp-low.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 087f6fc42f4..a7de367e432 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -3316,8 +3316,8 @@ optimize_omp_library_calls (gimple entry_stmt) continue; if (TREE_CODE (TREE_TYPE (decl)) != FUNCTION_TYPE - || TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (decl))) - != TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (built_in)))) + || !types_compatible_p (TREE_TYPE (TREE_TYPE (decl)), + TREE_TYPE (TREE_TYPE (built_in)))) continue; gimple_call_set_fndecl (call, built_in); |