From: Will Schmidt Date: Thu, 6 Sep 2018 13:52:14 +0000 (+0000) Subject: rs6000.c (fold_mergehl_helper): Add types_compatible_p wrappers around TREE_TYPE... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=84bde0bffe8b2d6291b196f3cd77398dea971c85;p=gcc.git rs6000.c (fold_mergehl_helper): Add types_compatible_p wrappers around TREE_TYPE comparisons. [gcc] 2018-08-20 Will Schmidt * config/rs6000/rs6000.c (fold_mergehl_helper): Add types_compatible_p wrappers around TREE_TYPE comparisons. From-SVN: r264145 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0191555aa90..7ac78ddf2ce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-09-06 Will Schmidt + + * config/rs6000/rs6000.c (fold_mergehl_helper): Add types_compatible_p + wrappers around TREE_TYPE comparisons. + 2018-09-06 Ilya Leoshkevich PR target/80080 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index ecaf0718ca7..cc69b5db9fd 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -15139,9 +15139,11 @@ fold_mergehl_helper (gimple_stmt_iterator *gsi, gimple *stmt, int use_high) permute_type = lhs_type; else { - if (TREE_TYPE (lhs_type) == TREE_TYPE (V2DF_type_node)) + if (types_compatible_p (TREE_TYPE (lhs_type), + TREE_TYPE (V2DF_type_node))) permute_type = V2DI_type_node; - else if (TREE_TYPE (lhs_type) == TREE_TYPE (V4SF_type_node)) + else if (types_compatible_p (TREE_TYPE (lhs_type), + TREE_TYPE (V4SF_type_node))) permute_type = V4SI_type_node; else gcc_unreachable ();