diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2011-06-30 19:32:23 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2011-06-30 19:32:23 +0000 |
commit | e2c9010ae86229c17b29cfdb83a5ac9d6c0299ba (patch) | |
tree | f900f452c6ba2f960badb312c526053e0993f2e5 /gcc/tree-ssa-dom.c | |
parent | dbb07bbc1b8845d2d6abd4fc29b505dc35da9372 (diff) | |
download | gcc-e2c9010ae86229c17b29cfdb83a5ac9d6c0299ba.zip gcc-e2c9010ae86229c17b29cfdb83a5ac9d6c0299ba.tar.gz gcc-e2c9010ae86229c17b29cfdb83a5ac9d6c0299ba.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r-- | gcc/tree-ssa-dom.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index bbfe0bc..7a00c8a 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -208,13 +208,11 @@ initialize_hash_element (gimple stmt, tree lhs, { enum tree_code subcode = gimple_assign_rhs_code (stmt); - expr->type = NULL_TREE; - switch (get_gimple_rhs_class (subcode)) { case GIMPLE_SINGLE_RHS: 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); break; case GIMPLE_UNARY_RHS: |