* loop.c (scan_loop): Honor AVOID_CC_MODE_COPIES.

From-SVN: r21935
This commit is contained in:
Jeffrey A Law 1998-08-24 11:06:09 +00:00 committed by Jeff Law
parent ffa0ec7101
commit ef9e3c5bce
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,7 @@
Mon Aug 24 10:25:46 1998 Jeffrey A Law (law@cygnus.com)
* loop.c (scan_loop): Honor AVOID_CC_MODE_COPIES.
* h8300.h (STRIP_NAME_ENCODING): Fix typo.
* sparc.md (TFmode splits): Use reg_overlap_mentioned_p to detect

View File

@ -781,6 +781,16 @@ scan_loop (loop_start, end, unroll_p)
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
may_not_optimize[i] = 1, n_times_set[i] = 1;
#ifdef AVOID_CCMODE_COPIES
/* Don't try to move insns which set CC registers if we should not
create CCmode register copies. */
be avoiding
for (i = FIRST_PSEUDO_REGISTER; i < nregs - loop_mems_idx; i++)
if (GET_MODE_CLASS (GET_MODE (regno_reg_rtx[i])) == MODE_CC)
may_not_optimize[i] = 1;
#endif
bcopy ((char *) n_times_set, (char *) n_times_used, nregs * sizeof (int));
if (loop_dump_stream)