diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-08 14:40:30 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-08 14:40:30 +0000 |
commit | 7ecda5e8e181d2d2c5b79c7d4159ce305d402fa5 (patch) | |
tree | 3b48e76184517cb4ee08b82df374d2a7e86ec1e2 /gcc/tree-call-cdce.c | |
parent | 44f67683401d7c457b3fd2e145cd0ae6fdb8ca20 (diff) | |
download | gcc-7ecda5e8e181d2d2c5b79c7d4159ce305d402fa5.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190229 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-call-cdce.c')
-rw-r--r-- | gcc/tree-call-cdce.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/gcc/tree-call-cdce.c b/gcc/tree-call-cdce.c index 06abda52487..c879548483b 100644 --- a/gcc/tree-call-cdce.c +++ b/gcc/tree-call-cdce.c @@ -203,7 +203,7 @@ check_pow (gimple pow_call) } else if (bc == SSA_NAME) { - tree base_val0, base_var, type; + tree base_val0, type; gimple base_def; int bit_sz; @@ -217,11 +217,7 @@ check_pow (gimple pow_call) return false; base_val0 = gimple_assign_rhs1 (base_def); - base_var = SSA_NAME_VAR (base_val0); - if (!DECL_P (base_var)) - return false; - - type = TREE_TYPE (base_var); + type = TREE_TYPE (base_val0); if (TREE_CODE (type) != INTEGER_TYPE) return false; bit_sz = TYPE_PRECISION (type); @@ -448,7 +444,7 @@ gen_conditions_for_pow_int_base (tree base, tree expn, { gimple base_def; tree base_val0; - tree base_var, int_type; + tree int_type; tree temp, tempn; tree cst0; gimple stmt1, stmt2; @@ -457,8 +453,7 @@ gen_conditions_for_pow_int_base (tree base, tree expn, base_def = SSA_NAME_DEF_STMT (base); base_val0 = gimple_assign_rhs1 (base_def); - base_var = SSA_NAME_VAR (base_val0); - int_type = TREE_TYPE (base_var); + int_type = TREE_TYPE (base_val0); bit_sz = TYPE_PRECISION (int_type); gcc_assert (bit_sz > 0 && bit_sz <= MAX_BASE_INT_BIT_SIZE); |