diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-08-27 23:11:32 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-08-27 23:11:32 +0000 |
commit | 17f06dcaaa0fa8e4ef8359e43a02053f1dfbcc31 (patch) | |
tree | d7e3a190c56792f6f460c7075a7ef5ac5a59933b /gcc/loop.c | |
parent | 5d07e3ab3249c7a80c958b5648ec9ff44c676516 (diff) | |
download | gcc-17f06dcaaa0fa8e4ef8359e43a02053f1dfbcc31.tar.gz |
* loop.c (scan_loop): Count down from max_reg_num - 1 to
FIRST_PSEUDO_REGISTER to avoid calilng max_reg_num each iteration
of the loop.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22043 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/loop.c b/gcc/loop.c index f11caebeb81..b4623224cb7 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -788,7 +788,7 @@ scan_loop (loop_start, end, unroll_p) #ifdef AVOID_CCMODE_COPIES /* Don't try to move insns which set CC registers if we should not create CCmode register copies. */ - for (i = FIRST_PSEUDO_REGISTER; i < max_reg_num (); i++) + for (i = max_reg_num () - 1; i >= FIRST_PSEUDO_REGISTER; i--) if (GET_MODE_CLASS (GET_MODE (regno_reg_rtx[i])) == MODE_CC) VARRAY_CHAR (may_not_optimize, i) = 1; #endif |