Commit 84bde0bf by Will Schmidt Committed by Will Schmidt

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
parent bdb57bcb
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> 2018-09-06 Ilya Leoshkevich <iii@linux.ibm.com>
PR target/80080 PR target/80080
......
...@@ -15139,9 +15139,11 @@ fold_mergehl_helper (gimple_stmt_iterator *gsi, gimple *stmt, int use_high) ...@@ -15139,9 +15139,11 @@ fold_mergehl_helper (gimple_stmt_iterator *gsi, gimple *stmt, int use_high)
permute_type = lhs_type; permute_type = lhs_type;
else 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; 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; permute_type = V4SI_type_node;
else else
gcc_unreachable (); gcc_unreachable ();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment