comparison gcc/tree-ssa-sccvn.c @ 19:58ad6c70ea60

update gcc from 4.4.0 to 4.4.1.
author kent@firefly.cr.ie.u-ryukyu.ac.jp
date Thu, 24 Sep 2009 13:21:57 +0900
parents a06113de4d67
children 77e2b8dfacca
comparison
equal deleted inserted replaced
18:33936f7f2835 19:58ad6c70ea60
1291 1291
1292 if (vnresult) 1292 if (vnresult)
1293 *vnresult = NULL; 1293 *vnresult = NULL;
1294 vno1.opcode = gimple_assign_rhs_code (stmt); 1294 vno1.opcode = gimple_assign_rhs_code (stmt);
1295 vno1.length = gimple_num_ops (stmt) - 1; 1295 vno1.length = gimple_num_ops (stmt) - 1;
1296 vno1.type = TREE_TYPE (gimple_assign_lhs (stmt)); 1296 vno1.type = gimple_expr_type (stmt);
1297 for (i = 0; i < vno1.length; ++i) 1297 for (i = 0; i < vno1.length; ++i)
1298 vno1.op[i] = gimple_op (stmt, i + 1); 1298 vno1.op[i] = gimple_op (stmt, i + 1);
1299 if (vno1.opcode == REALPART_EXPR 1299 if (vno1.opcode == REALPART_EXPR
1300 || vno1.opcode == IMAGPART_EXPR 1300 || vno1.opcode == IMAGPART_EXPR
1301 || vno1.opcode == VIEW_CONVERT_EXPR) 1301 || vno1.opcode == VIEW_CONVERT_EXPR)
1399 (sizeof (struct vn_nary_op_s) 1399 (sizeof (struct vn_nary_op_s)
1400 - sizeof (tree) * (4 - length))); 1400 - sizeof (tree) * (4 - length)));
1401 vno1->value_id = VN_INFO (result)->value_id; 1401 vno1->value_id = VN_INFO (result)->value_id;
1402 vno1->opcode = gimple_assign_rhs_code (stmt); 1402 vno1->opcode = gimple_assign_rhs_code (stmt);
1403 vno1->length = length; 1403 vno1->length = length;
1404 vno1->type = TREE_TYPE (gimple_assign_lhs (stmt)); 1404 vno1->type = gimple_expr_type (stmt);
1405 for (i = 0; i < vno1->length; ++i) 1405 for (i = 0; i < vno1->length; ++i)
1406 vno1->op[i] = gimple_op (stmt, i + 1); 1406 vno1->op[i] = gimple_op (stmt, i + 1);
1407 if (vno1->opcode == REALPART_EXPR 1407 if (vno1->opcode == REALPART_EXPR
1408 || vno1->opcode == IMAGPART_EXPR 1408 || vno1->opcode == IMAGPART_EXPR
1409 || vno1->opcode == VIEW_CONVERT_EXPR) 1409 || vno1->opcode == VIEW_CONVERT_EXPR)
2140 return NULL_TREE; 2140 return NULL_TREE;
2141 2141
2142 fold_defer_overflow_warnings (); 2142 fold_defer_overflow_warnings ();
2143 2143
2144 result = fold_binary (gimple_assign_rhs_code (stmt), 2144 result = fold_binary (gimple_assign_rhs_code (stmt),
2145 TREE_TYPE (gimple_get_lhs (stmt)), op0, op1); 2145 gimple_expr_type (stmt), op0, op1);
2146 if (result) 2146 if (result)
2147 STRIP_USELESS_TYPE_CONVERSION (result); 2147 STRIP_USELESS_TYPE_CONVERSION (result);
2148 2148
2149 fold_undefer_overflow_warnings (result && valid_gimple_rhs_p (result), 2149 fold_undefer_overflow_warnings (result && valid_gimple_rhs_p (result),
2150 stmt, 0); 2150 stmt, 0);