diff options
author | Steven Bosscher <steven@gcc.gnu.org> | 2013-03-23 12:11:10 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2013-03-23 12:11:10 +0000 |
commit | b64925dc4b75d48fe36c0fcd41fd02151a5ffa55 (patch) | |
tree | 17531e80a4ee959e96e3b55b923dbe168f1daa80 /gcc/config/v850/v850.c | |
parent | b9aaf52e25a78e5b150ecc7a8b5226392e569b5e (diff) | |
download | gcc-b64925dc4b75d48fe36c0fcd41fd02151a5ffa55.zip gcc-b64925dc4b75d48fe36c0fcd41fd02151a5ffa55.tar.gz gcc-b64925dc4b75d48fe36c0fcd41fd02151a5ffa55.tar.bz2 |
avr.c, [...]: Where applicable...
* config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
BARRIER_P instead of GET_CODE.
From-SVN: r197005
Diffstat (limited to 'gcc/config/v850/v850.c')
-rw-r--r-- | gcc/config/v850/v850.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c index 67cc2c2..4a746aa 100644 --- a/gcc/config/v850/v850.c +++ b/gcc/config/v850/v850.c @@ -1133,13 +1133,13 @@ Saved %d bytes (%d uses of register %s) in function %s, starting as insn %d, end IDENTIFIER_POINTER (DECL_NAME (current_function_decl)), INSN_UID (first_insn), INSN_UID (last_insn)); - if (GET_CODE (first_insn) == NOTE) + if (NOTE_P (first_insn)) first_insn = next_nonnote_insn (first_insn); last_insn = next_nonnote_insn (last_insn); for (insn = first_insn; insn && insn != last_insn; insn = NEXT_INSN (insn)) { - if (GET_CODE (insn) == INSN) + if (NONJUMP_INSN_P (insn)) { rtx pattern = single_set (insn); @@ -1199,7 +1199,7 @@ Saved %d bytes (%d uses of register %s) in function %s, starting as insn %d, end /* Optimize back to back cases of ep <- r1 & r1 <- ep. */ insn = prev_nonnote_insn (first_insn); - if (insn && GET_CODE (insn) == INSN + if (insn && NONJUMP_INSN_P (insn) && GET_CODE (PATTERN (insn)) == SET && SET_DEST (PATTERN (insn)) == *p_ep && SET_SRC (PATTERN (insn)) == *p_r1) |