Commit e2c9010a by Eric Botcazou Committed by Eric Botcazou

re PR tree-optimization/49572 (gcc.dg/tree-ssa/20030709-2.c scan-tree-dump-times cddce2 ".rtmem" 0)

	PR tree-optimization/49572
	* tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
	type of the RHS instead of that of the LHS for the expression type.

From-SVN: r175721
parent dbb07bbc
2011-06-30 Eric Botcazou <ebotcazou@adacore.com> 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
PR tree-optimization/49572
* tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
type of the RHS instead of that of the LHS for the expression type.
2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
* df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
unconditionally. unconditionally.
......
...@@ -208,13 +208,11 @@ initialize_hash_element (gimple stmt, tree lhs, ...@@ -208,13 +208,11 @@ initialize_hash_element (gimple stmt, tree lhs,
{ {
enum tree_code subcode = gimple_assign_rhs_code (stmt); enum tree_code subcode = gimple_assign_rhs_code (stmt);
expr->type = NULL_TREE;
switch (get_gimple_rhs_class (subcode)) switch (get_gimple_rhs_class (subcode))
{ {
case GIMPLE_SINGLE_RHS: case GIMPLE_SINGLE_RHS:
expr->kind = EXPR_SINGLE; expr->kind = EXPR_SINGLE;
expr->type = TREE_TYPE (gimple_assign_lhs (stmt)); expr->type = TREE_TYPE (gimple_assign_rhs1 (stmt));
expr->ops.single.rhs = gimple_assign_rhs1 (stmt); expr->ops.single.rhs = gimple_assign_rhs1 (stmt);
break; break;
case GIMPLE_UNARY_RHS: case GIMPLE_UNARY_RHS:
......
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