diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-06-06 13:14:45 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-06-06 13:14:45 +0000 |
commit | e67d1102e0d55effe57427369957351d206f6475 (patch) | |
tree | ae5222f0b206b4fe1455b6bf791013c65d7bdbb5 /gcc/gcse.c | |
parent | ad42dbbebaca32f857812b2285c8e4462bb0c688 (diff) | |
download | gcc-e67d1102e0d55effe57427369957351d206f6475.zip gcc-e67d1102e0d55effe57427369957351d206f6475.tar.gz gcc-e67d1102e0d55effe57427369957351d206f6475.tar.bz2 |
emit-rtl.c, [...]: Replace rtx base types with more derived ones.
gcc/
* emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
except.c, final.c, function.c, gcse-common.c, genemit.c,
haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
more derived ones.
From-SVN: r224187
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r-- | gcc/gcse.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -540,7 +540,6 @@ static void trim_ld_motion_mems (void); static void update_ld_motion_stores (struct gcse_expr *); static void clear_modify_mem_tables (void); static void free_modify_mem_tables (void); -static rtx gcse_emit_move_after (rtx, rtx, rtx_insn *); static bool is_too_expensive (const char *); #define GNEW(T) ((T *) gmalloc (sizeof (T))) @@ -2434,7 +2433,7 @@ single_set_gcse (rtx_insn *insn) /* Emit move from SRC to DEST noting the equivalence with expression computed in INSN. */ -static rtx +static rtx_insn * gcse_emit_move_after (rtx dest, rtx src, rtx_insn *insn) { rtx_insn *new_rtx; @@ -3960,7 +3959,6 @@ update_ld_motion_stores (struct gcse_expr * expr) rtx pat = PATTERN (insn); rtx src = SET_SRC (pat); rtx reg = expr->reaching_reg; - rtx copy; /* If we've already copied it, continue. */ if (expr->reaching_reg == src) @@ -3975,7 +3973,7 @@ update_ld_motion_stores (struct gcse_expr * expr) fprintf (dump_file, "\n"); } - copy = gen_move_insn (reg, copy_rtx (SET_SRC (pat))); + rtx_insn *copy = gen_move_insn (reg, copy_rtx (SET_SRC (pat))); emit_insn_before (copy, insn); SET_SRC (pat) = reg; df_insn_rescan (insn); |