diff options
author | James E Wilson <wilson@tuliptree.org> | 2003-09-06 22:21:35 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2003-09-06 22:21:35 -0700 |
commit | 10ef35a9da71ff3ea5cba283f0052b1caf7487b1 (patch) | |
tree | 966d9d2962735e4acfc319a1fbebf90cc2136cef | |
parent | 385bce060ac82554753630f1447a85c650300d9d (diff) | |
download | gcc-10ef35a9da71ff3ea5cba283f0052b1caf7487b1.zip gcc-10ef35a9da71ff3ea5cba283f0052b1caf7487b1.tar.gz gcc-10ef35a9da71ff3ea5cba283f0052b1caf7487b1.tar.bz2 |
loop.c (loop_regs_update): Delete else clause for PATTERN rtx and simplify.
* loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
simplify.
From-SVN: r71160
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/loop.c | 21 |
2 files changed, 11 insertions, 15 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e5a3270..7669b77 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-09-06 James E Wilson <wilson@tuliptree.org> + + * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and + simplify. + 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com> * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS @@ -7741,25 +7741,16 @@ loop_regs_update (const struct loop *loop ATTRIBUTE_UNUSED, rtx seq) /* Update register info for alias analysis. */ - if (seq == NULL_RTX) - return; - - if (INSN_P (seq)) + insn = seq; + while (insn != NULL_RTX) { - insn = seq; - while (insn != NULL_RTX) - { - rtx set = single_set (insn); + rtx set = single_set (insn); - if (set && GET_CODE (SET_DEST (set)) == REG) - record_base_value (REGNO (SET_DEST (set)), SET_SRC (set), 0); + if (set && GET_CODE (SET_DEST (set)) == REG) + record_base_value (REGNO (SET_DEST (set)), SET_SRC (set), 0); - insn = NEXT_INSN (insn); - } + insn = NEXT_INSN (insn); } - else if (GET_CODE (seq) == SET - && GET_CODE (SET_DEST (seq)) == REG) - record_base_value (REGNO (SET_DEST (seq)), SET_SRC (seq), 0); } |