aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-08-27 23:19:47 +0000
committerJeff Law <law@gcc.gnu.org>1998-08-27 17:19:47 -0600
commit78b87d18ae25299f9da51225378397abbdbb5349 (patch)
tree1864db64557cbcba4ee72e2cebe8c676601cb748
parent3568fdd276afa934f3e5cf3dd6601a3663abecef (diff)
downloadgcc-78b87d18ae25299f9da51225378397abbdbb5349.zip
gcc-78b87d18ae25299f9da51225378397abbdbb5349.tar.gz
gcc-78b87d18ae25299f9da51225378397abbdbb5349.tar.bz2
loop.c (scan_loop): Count down from max_reg_num - 1 to FIRST_PSEUDO_REGISTER to avoid calling...
* loop.c (scan_loop): Count down from max_reg_num - 1 to FIRST_PSEUDO_REGISTER to avoid calling max_reg_num each iteration of the loop. (load_mems_and_recount_loop_regs_set): Likewise. Forgot second AVOID_CCMODE_COPIES loop. From-SVN: r22044
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/loop.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8322877..6db8cead 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,8 +1,9 @@
Thu Aug 27 20:10:46 1998 Jeffrey A Law (law@cygnus.com)
* loop.c (scan_loop): Count down from max_reg_num - 1 to
- FIRST_PSEUDO_REGISTER to avoid calilng max_reg_num each iteration
+ FIRST_PSEUDO_REGISTER to avoid calling max_reg_num each iteration
of the loop.
+ (load_mems_and_recount_loop_regs_set): Likewise.
* i386.c (print_operand): Remove obsolete 'c' docs.
diff --git a/gcc/loop.c b/gcc/loop.c
index b462322..3301f7d 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -8613,7 +8613,7 @@ load_mems_and_recount_loop_regs_set (scan_start, end, loop_top, start,
#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