diff options
author | Jeff Law <law@gcc.gnu.org> | 1998-05-05 17:18:02 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-05-05 17:18:02 -0600 |
commit | f5963e617044e79f7658c82ebc9acdccdc56d57b (patch) | |
tree | 017db6c8be411c52ab98093e94dcce3c7ca3f029 /gcc/loop.c | |
parent | 9d1bcb4667cf94ae02b3b3015694a55175be9c9f (diff) | |
download | gcc-f5963e617044e79f7658c82ebc9acdccdc56d57b.zip gcc-f5963e617044e79f7658c82ebc9acdccdc56d57b.tar.gz gcc-f5963e617044e79f7658c82ebc9acdccdc56d57b.tar.bz2 |
* Check in merge from gcc2. See ChangeLog.12 for details.
From-SVN: r19553
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -480,6 +480,8 @@ loop_optimize (f, dumpfile, unroll_p) /* See if we went too far. */ if (get_max_uid () > max_uid_for_loop) abort (); + /* Now reset it to the actual size we need. See above. */ + max_uid_for_loop = get_max_uid () + 1; /* Compute the mapping from uids to luids. LUIDs are numbers assigned to insns, like uids, @@ -4115,7 +4117,8 @@ strength_reduce (scan_start, end, loop_top, insn_count, /* We don't handle reversed biv's because bl->biv->insn does not have a valid INSN_LUID. */ && ! bl->reversed - && v->always_executed && ! v->maybe_multiple) + && v->always_executed && ! v->maybe_multiple + && INSN_UID (v->insn) < max_uid_for_loop) { /* If other giv's have been combined with this one, then this will work only if all uses of the other giv's occur |