aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2001-06-04 20:16:34 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2001-06-04 18:16:34 +0000
commit978f547fa2d821d32e86fc7ed775750301ace8b5 (patch)
tree69ec4c458c50d1d71083e7063167851c9e9454e5 /gcc/rtlanal.c
parent31990cd54c4c07598ceda192ed4893844f958671 (diff)
downloadgcc-978f547fa2d821d32e86fc7ed775750301ace8b5.zip
gcc-978f547fa2d821d32e86fc7ed775750301ace8b5.tar.gz
gcc-978f547fa2d821d32e86fc7ed775750301ace8b5.tar.bz2
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
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index ca14415..013ad74 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;