From e67d1102e0d55effe57427369957351d206f6475 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sat, 6 Jun 2015 13:14:45 +0000 Subject: 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 --- gcc/sched-deps.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'gcc/sched-deps.c') diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c index 20da5f9..fea2704 100644 --- a/gcc/sched-deps.c +++ b/gcc/sched-deps.c @@ -3003,8 +3003,7 @@ sched_analyze_insn (struct deps_desc *deps, rtx x, rtx_insn *insn) if (JUMP_P (insn)) { - rtx next; - next = next_nonnote_nondebug_insn (insn); + rtx_insn *next = next_nonnote_nondebug_insn (insn); if (next && BARRIER_P (next)) reg_pending_barrier = MOVE_BARRIER; else @@ -3591,8 +3590,6 @@ call_may_noreturn_p (rtx_insn *insn) static bool chain_to_prev_insn_p (rtx_insn *insn) { - rtx prev, x; - /* INSN forms a group with the previous instruction. */ if (SCHED_GROUP_P (insn)) return true; @@ -3601,13 +3598,13 @@ chain_to_prev_insn_p (rtx_insn *insn) part of R, the clobber was added specifically to help us track the liveness of R. There's no point scheduling the clobber and leaving INSN behind, especially if we move the clobber to another block. */ - prev = prev_nonnote_nondebug_insn (insn); + rtx_insn *prev = prev_nonnote_nondebug_insn (insn); if (prev && INSN_P (prev) && BLOCK_FOR_INSN (prev) == BLOCK_FOR_INSN (insn) && GET_CODE (PATTERN (prev)) == CLOBBER) { - x = XEXP (PATTERN (prev), 0); + rtx x = XEXP (PATTERN (prev), 0); if (set_of (x, insn)) return true; } -- cgit v1.1