rs6000.c (fold_mergehl_helper): Add types_compatible_p wrappers around TREE_TYPE...
authorWill Schmidt <will_schmidt@vnet.ibm.com>
Thu, 6 Sep 2018 13:52:14 +0000 (13:52 +0000)
committerWill Schmidt <willschm@gcc.gnu.org>
Thu, 6 Sep 2018 13:52:14 +0000 (13:52 +0000)
[gcc]

2018-08-20  Will Schmidt  <will_schmidt@vnet.ibm.com>

* config/rs6000/rs6000.c (fold_mergehl_helper): Add types_compatible_p
wrappers around TREE_TYPE comparisons.

From-SVN: r264145

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 0191555aa9033f9542738877c6041079bf51b4b3..7ac78ddf2ce05fff31cdd06c30a78521d01b4e57 100644 (file)
@@ -1,3 +1,8 @@
+2018-09-06  Will Schmidt  <will_schmidt@vnet.ibm.com>
+
+       * config/rs6000/rs6000.c (fold_mergehl_helper): Add types_compatible_p
+       wrappers around TREE_TYPE comparisons.
+
 2018-09-06  Ilya Leoshkevich  <iii@linux.ibm.com>
 
        PR target/80080
index ecaf0718ca7805592e1d5a64a52653f25856b9cb..cc69b5db9fd0ffecc50373ae664cad0d7517d5e3 100644 (file)
@@ -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 ();