From 278d1e749838a9a3c7d06c21e4bda4f6dc9df563 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Thu, 30 Jun 2011 19:37:41 +0000 Subject: [PATCH] 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) : Use the type of the RHS instead of that of the LHS for the expression type. From-SVN: r175723 --- gcc/ChangeLog | 28 +++++++++++++++++----------- gcc/tree-ssa-dom.c | 4 +--- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 37eba05b9e87..87407c20e382 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,16 +1,22 @@ +2011-06-30 Eric Botcazou + + PR tree-optimization/49572 + * tree-ssa-dom.c (initialize_hash_element) : Use the + type of the RHS instead of that of the LHS for the expression type. + 2011-06-30 Jack Howarth - Backport from mainline - 2011-02-07 Mike Stump - - PR target/42333 - Add __ieee_divdc3 entry point. - * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3 - entry point. - (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins. - * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise. - * config/darwin.c (darwin_rename_builtins): Add. - * config/darwin-protos.h (darwin_rename_builtins): Add. + Backport from mainline + 2011-02-07 Mike Stump + + PR target/42333 + Add __ieee_divdc3 entry point. + * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3 + entry point. + (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins. + * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise. + * config/darwin.c (darwin_rename_builtins): Add. + * config/darwin-protos.h (darwin_rename_builtins): Add. 2011-06-28 Eric Botcazou diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 1b67ccddc2b6..28eaa904a715 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -209,13 +209,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: -- 2.47.2