summaryrefslogtreecommitdiffstats
path: root/gcc/loop.c
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-02 13:38:56 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-02 13:38:56 +0000
commita410d4cb592b47ea930d88ce5f459991dea6b4a5 (patch)
tree71a6eadf57f0cd51ef3bbf9bb160e54ef22eeb53 /gcc/loop.c
parentcc2d6bfef3775830208b680a5fc558f0b5fdbf1e (diff)
downloadppe42-gcc-a410d4cb592b47ea930d88ce5f459991dea6b4a5.tar.gz
ppe42-gcc-a410d4cb592b47ea930d88ce5f459991dea6b4a5.zip
* loop.c (loop_optimize): Fix value max_uid_for_loop is reset
to after find_and_verify_loops call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24973 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index 8323a273c6a..2f054fb5d78 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -525,11 +525,12 @@ loop_optimize (f, dumpfile, unroll_p, bct_p)
but moving this call to init_alias_analysis is more efficient. */
init_alias_analysis ();
- /* See if we went too far. */
+ /* See if we went too far. Note that get_max_uid already returns
+ one more that the maximum uid of all insn. */
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;
+ max_uid_for_loop = get_max_uid ();
/* find_and_verify_loops has already called compute_luids, but it might
have rearranged code afterwards, so we need to recompute the luids now. */
OpenPOWER on IntegriCloud