diff options
Diffstat (limited to 'gcc/tree-call-cdce.c')
-rw-r--r-- | gcc/tree-call-cdce.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/gcc/tree-call-cdce.c b/gcc/tree-call-cdce.c index 8307edbce61..be020dab809 100644 --- a/gcc/tree-call-cdce.c +++ b/gcc/tree-call-cdce.c @@ -28,9 +28,7 @@ along with GCC; see the file COPYING3. If not see #include "gimple-pretty-print.h" #include "tree-flow.h" #include "gimple.h" -#include "tree-dump.h" #include "tree-pass.h" -#include "timevar.h" #include "flags.h" @@ -205,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; @@ -219,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); @@ -380,7 +374,7 @@ gen_conditions_for_domain (tree arg, inp_domain domain, { /* Now push a separator. */ if (domain.has_lb) - VEC_quick_push (gimple, conds, NULL); + VEC_quick_push (gimple, conds, (gimple)NULL); gen_one_condition (arg, domain.ub, (domain.is_ub_inclusive @@ -450,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; @@ -459,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); @@ -503,7 +496,7 @@ gen_conditions_for_pow_int_base (tree base, tree expn, type is integer. */ /* Push a separator. */ - VEC_quick_push (gimple, conds, NULL); + VEC_quick_push (gimple, conds, (gimple)NULL); temp = create_tmp_var (int_type, "DCE_COND1"); cst0 = build_int_cst (int_type, 0); @@ -896,7 +889,7 @@ tree_call_cdce (void) free_dominance_info (CDI_POST_DOMINATORS); /* As we introduced new control-flow we need to insert PHI-nodes for the call-clobbers of the remaining call. */ - mark_sym_for_renaming (gimple_vop (cfun)); + mark_virtual_operands_for_renaming (cfun); return (TODO_update_ssa | TODO_cleanup_cfg | TODO_ggc_collect | TODO_remove_unused_locals); } |