diff options
author | Doug Evans <dje@gnu.org> | 1993-09-24 19:49:57 +0000 |
---|---|---|
committer | Doug Evans <dje@gnu.org> | 1993-09-24 19:49:57 +0000 |
commit | 6fa4004a0cb37854350172c0cf72d9b91eb87aae (patch) | |
tree | b24e63f2e25c024b3392ed5bcfd11d219ad1477f /gcc/loop.c | |
parent | c2618f0522459c99f2cbf8a300e3c8f5ded6f12f (diff) | |
download | gcc-6fa4004a0cb37854350172c0cf72d9b91eb87aae.zip gcc-6fa4004a0cb37854350172c0cf72d9b91eb87aae.tar.gz gcc-6fa4004a0cb37854350172c0cf72d9b91eb87aae.tar.bz2 |
* loop.c: (invariant_p, case REG): hard_frame_pointer_rtx is invariant.
From-SVN: r5461
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2661,7 +2661,8 @@ invariant_p (x) case REG: /* We used to check RTX_UNCHANGING_P (x) here, but that is invalid since the reg might be set by initialization within the loop. */ - if (x == frame_pointer_rtx || x == arg_pointer_rtx) + if (x == frame_pointer_rtx || x == hard_frame_pointer_rtx + || x == arg_pointer_rtx) return 1; if (loop_has_call && REGNO (x) < FIRST_PSEUDO_REGISTER && call_used_regs[REGNO (x)]) |