diff options
author | Richard Guenther <rguenther@suse.de> | 2012-08-08 14:40:30 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-08-08 14:40:30 +0000 |
commit | 6b4a85ad6f41a0f2f1a10917dc3b9366c9a5c051 (patch) | |
tree | 3b48e76184517cb4ee08b82df374d2a7e86ec1e2 /gcc/tree-ssa-dom.c | |
parent | 3b1e1a029a93f57ad64209560f00c2ec1f24fdfe (diff) | |
download | gcc-6b4a85ad6f41a0f2f1a10917dc3b9366c9a5c051.zip gcc-6b4a85ad6f41a0f2f1a10917dc3b9366c9a5c051.tar.gz gcc-6b4a85ad6f41a0f2f1a10917dc3b9366c9a5c051.tar.bz2 |
tree-call-cdce.c (check_pow): Simplify.
2012-08-08 Richard Guenther <rguenther@suse.de>
* tree-call-cdce.c (check_pow): Simplify.
(gen_conditions_for_pow_int_base): Likewise.
* tree-ssa-dom.c (propagate_rhs_into_lhs): Do not handle
virtual operands here.
* tree-ssa-operands.c (get_name_decl): Remove unused function.
* gimplify.c (gimple_regimplify_operands): Remove dead code.
* tree-vrp.c (get_value_range): Move SSA_NAME_VAR access.
* tree-parloops.c (create_phi_for_local_result): Use copy_ssa_name.
* value-prof.c (gimple_ic): Use duplicate_ssa_name.
(gimple_stringop_fixed_value): Likewise.
* tree.c (needs_to_live_in_memory): Remove SSA name handling.
* tree-stdarg.c (find_va_list_reference): Store SSA_NAME_VERSIONs
in the bitmap alongside shifted DECL_UIDs.
(va_list_counter_struct_op): Likewise.
(va_list_ptr_read): Likewise.
(va_list_ptr_write): Likewise.
(check_va_list_escapes): Likewise.
(check_all_va_list_escapes): Likewise.
(execute_optimize_stdarg): Likewise.
* tree-outof-ssa.c (insert_backedge_copies): Use copy_ssa_name.
From-SVN: r190229
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r-- | gcc/tree-ssa-dom.c | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 393aa26..d2a4128 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -2687,18 +2687,13 @@ propagate_rhs_into_lhs (gimple stmt, tree lhs, tree rhs, bitmap interesting_name /* Special cases to avoid useless calls into the folding routines, operand scanning, etc. - First, propagation into a PHI may cause the PHI to become + Propagation into a PHI may cause the PHI to become a degenerate, so mark the PHI as interesting. No other - actions are necessary. - - Second, if we're propagating a virtual operand and the - propagation does not change the underlying _DECL node for - the virtual operand, then no further actions are necessary. */ - if (gimple_code (use_stmt) == GIMPLE_PHI - || (! is_gimple_reg (lhs) - && TREE_CODE (rhs) == SSA_NAME - && SSA_NAME_VAR (lhs) == SSA_NAME_VAR (rhs))) + actions are necessary. */ + if (gimple_code (use_stmt) == GIMPLE_PHI) { + tree result; + /* Dump details. */ if (dump_file && (dump_flags & TDF_DETAILS)) { @@ -2706,14 +2701,8 @@ propagate_rhs_into_lhs (gimple stmt, tree lhs, tree rhs, bitmap interesting_name print_gimple_stmt (dump_file, use_stmt, 0, dump_flags); } - /* Propagation into a PHI may expose new degenerate PHIs, - so mark the result of the PHI as interesting. */ - if (gimple_code (use_stmt) == GIMPLE_PHI) - { - tree result = get_lhs_or_phi_result (use_stmt); - bitmap_set_bit (interesting_names, SSA_NAME_VERSION (result)); - } - + result = get_lhs_or_phi_result (use_stmt); + bitmap_set_bit (interesting_names, SSA_NAME_VERSION (result)); continue; } |