From 978f547fa2d821d32e86fc7ed775750301ace8b5 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 4 Jun 2001 20:16:34 +0200 Subject: [PATCH] rtlanal.c (rtx_unsable_p): ADDRESSOF is stable. * rtlanal.c (rtx_unsable_p): ADDRESSOF is stable. (no_labels_between_p): Short circuit case beg==end. From-SVN: r42867 --- gcc/ChangeLog | 5 +++++ gcc/rtlanal.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7498981726c..05421810ee0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Mon Jun 4 20:15:25 CEST 2001 Jan Hubicka + + * rtlanal.c (rtx_unsable_p): ADDRESSOF is stable. + (no_labels_between_p): Short circuit case beg==end. + Mon Jun 4 20:03:05 CEST 2001 Jan Hubicka * rtlanal.c (operand_preference): Fix preference for objects. diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index ca144159cec..013ad74e34e 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -59,6 +59,7 @@ rtx_unstable_p (x) case QUEUED: return 1; + case ADDRESSOF: case CONST: case CONST_INT: case CONST_DOUBLE: @@ -476,6 +477,8 @@ no_labels_between_p (beg, end) rtx beg, end; { register rtx p; + if (beg == end) + return 0; for (p = NEXT_INSN (beg); p != end; p = NEXT_INSN (p)) if (GET_CODE (p) == CODE_LABEL) return 0; -- 2.30.2