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/sched-deps.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/sched-deps.c')
-rw-r--r-- | gcc/sched-deps.c | 9 |
1 files changed, 3 insertions, 6 deletions
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; } |