diff options
author | Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> | 2003-04-08 01:34:25 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2003-04-07 23:34:25 +0000 |
commit | 760e8e420fdf52ac81864b3b0db2fa488c876c5f (patch) | |
tree | 53c863eb3b295048952e83158b84b224c5054751 /gcc/loop.h | |
parent | b0a3412c466ef89b925f4754f27b5b0af9d82989 (diff) | |
download | gcc-760e8e420fdf52ac81864b3b0db2fa488c876c5f.zip gcc-760e8e420fdf52ac81864b3b0db2fa488c876c5f.tar.gz gcc-760e8e420fdf52ac81864b3b0db2fa488c876c5f.tar.bz2 |
loop.h (REGNO_FIRST_LUID, [...]): Provide defaults for insns without luid.
* loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
for insns without luid.
From-SVN: r65354
Diffstat (limited to 'gcc/loop.h')
-rw-r--r-- | gcc/loop.h | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -49,9 +49,14 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA (INSN_UID (INSN) < max_uid_for_loop ? uid_luid[INSN_UID (INSN)] \ : (abort (), -1)) -#define REGNO_FIRST_LUID(REGNO) uid_luid[REGNO_FIRST_UID (REGNO)] -#define REGNO_LAST_LUID(REGNO) uid_luid[REGNO_LAST_UID (REGNO)] - +#define REGNO_FIRST_LUID(REGNO) \ + (REGNO_FIRST_UID (REGNO) < max_uid_for_loop \ + ? uid_luid[REGNO_FIRST_UID (REGNO)] \ + : 0) +#define REGNO_LAST_LUID(REGNO) \ + (REGNO_LAST_UID (REGNO) < max_uid_for_loop \ + ? uid_luid[REGNO_LAST_UID (REGNO)] \ + : INT_MAX) /* A "basic induction variable" or biv is a pseudo reg that is set (within this loop) only by incrementing or decrementing it. */ |