Commit ef9e3c5b by Jeffrey A Law Committed by Jeff Law

* loop.c (scan_loop): Honor AVOID_CC_MODE_COPIES.

From-SVN: r21935
parent ffa0ec71
Mon Aug 24 10:25:46 1998 Jeffrey A Law (law@cygnus.com) 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. * h8300.h (STRIP_NAME_ENCODING): Fix typo.
* sparc.md (TFmode splits): Use reg_overlap_mentioned_p to detect * sparc.md (TFmode splits): Use reg_overlap_mentioned_p to detect
......
...@@ -781,6 +781,16 @@ scan_loop (loop_start, end, unroll_p) ...@@ -781,6 +781,16 @@ scan_loop (loop_start, end, unroll_p)
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
may_not_optimize[i] = 1, n_times_set[i] = 1; 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)); bcopy ((char *) n_times_set, (char *) n_times_used, nregs * sizeof (int));
if (loop_dump_stream) if (loop_dump_stream)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment