diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-07 23:34:25 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-07 23:34:25 +0000 |
commit | 239b846cca07498f174784798426f56266b64f54 (patch) | |
tree | 53c863eb3b295048952e83158b84b224c5054751 /gcc/loop.h | |
parent | a86696c32abbde9a61f5bb9af8e19b5ad80e3bc8 (diff) | |
download | gcc-239b846cca07498f174784798426f56266b64f54.tar.gz |
* loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
for insns without luid.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65354 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.h')
-rw-r--r-- | gcc/loop.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gcc/loop.h b/gcc/loop.h index 362013f3978..12a0b619313 100644 --- a/gcc/loop.h +++ b/gcc/loop.h @@ -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. */ |