aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E Wilson <wilson@tuliptree.org>2003-09-06 22:21:35 -0700
committerJim Wilson <wilson@gcc.gnu.org>2003-09-06 22:21:35 -0700
commit10ef35a9da71ff3ea5cba283f0052b1caf7487b1 (patch)
tree966d9d2962735e4acfc319a1fbebf90cc2136cef
parent385bce060ac82554753630f1447a85c650300d9d (diff)
downloadgcc-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/ChangeLog5
-rw-r--r--gcc/loop.c21
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
diff --git a/gcc/loop.c b/gcc/loop.c
index 4a987d50..31592fc 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -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);
}