diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2005-04-28 05:03:09 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2005-04-28 05:03:09 +0000 |
commit | 2ca202e792186e9641f933ad0830266dbace0eeb (patch) | |
tree | fe6f1039398672aa41a8e7ee84c0d75a91f4b324 /gcc/resource.c | |
parent | b6f9abcfe37f1b295c17b97f351465467e47921d (diff) | |
download | gcc-2ca202e792186e9641f933ad0830266dbace0eeb.zip gcc-2ca202e792186e9641f933ad0830266dbace0eeb.tar.gz gcc-2ca202e792186e9641f933ad0830266dbace0eeb.tar.bz2 |
bt-load.c, [...]: Use JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P where appropriate.
* bt-load.c, cfgexpand.c, dwarf2out.c, emit-rtl.c, expr.c,
function.c, global.c, lcm.c, loop-invariant.c, optabs.c,
reorg.c, resource.c, tree-ssa-loop-ivopts.c, value-prof.c: Use
JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P
where appropriate.
From-SVN: r98913
Diffstat (limited to 'gcc/resource.c')
-rw-r--r-- | gcc/resource.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/resource.c b/gcc/resource.c index ce86aaf..6d7bf5f 100644 --- a/gcc/resource.c +++ b/gcc/resource.c @@ -834,10 +834,10 @@ mark_set_resources (rtx x, struct resources *res, int in_dest, static bool return_insn_p (rtx insn) { - if (GET_CODE (insn) == JUMP_INSN && GET_CODE (PATTERN (insn)) == RETURN) + if (JUMP_P (insn) && GET_CODE (PATTERN (insn)) == RETURN) return true; - if (GET_CODE (insn) == INSN && GET_CODE (PATTERN (insn)) == SEQUENCE) + if (NONJUMP_INSN_P (insn) && GET_CODE (PATTERN (insn)) == SEQUENCE) return return_insn_p (XVECEXP (PATTERN (insn), 0, 0)); return false; |