aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorWill Schmidt <will_schmidt@vnet.ibm.com>2018-09-06 13:52:14 +0000
committerWill Schmidt <willschm@gcc.gnu.org>2018-09-06 13:52:14 +0000
commit84bde0bffe8b2d6291b196f3cd77398dea971c85 (patch)
tree50b699b2fbed27bd0403a47a456e3a4909c039f4 /gcc
parentbdb57bcb548f493107d0701a88da0cdcfa122e24 (diff)
downloadgcc-84bde0bffe8b2d6291b196f3cd77398dea971c85.zip
gcc-84bde0bffe8b2d6291b196f3cd77398dea971c85.tar.gz
gcc-84bde0bffe8b2d6291b196f3cd77398dea971c85.tar.bz2
rs6000.c (fold_mergehl_helper): Add types_compatible_p wrappers around TREE_TYPE comparisons.
[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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0191555..7ac78dd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index ecaf071..cc69b5d 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 ();