diff options
author | Richard Henderson <rth@cygnus.com> | 2000-09-19 00:35:55 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-09-19 00:35:55 -0700 |
commit | 8aa0e194174f946e6524756950adc49840b44572 (patch) | |
tree | 472dad6642d8897ffafcb0d3984959b4535b5e30 /gcc/unroll.c | |
parent | 033b5a34bb0b08783cae2ff88bc9a7c7eece05b1 (diff) | |
download | gcc-8aa0e194174f946e6524756950adc49840b44572.zip gcc-8aa0e194174f946e6524756950adc49840b44572.tar.gz gcc-8aa0e194174f946e6524756950adc49840b44572.tar.bz2 |
unroll.c (copy_loop_body): Update LABEL_NUSES before calling invert_jump.
* unroll.c (copy_loop_body): Update LABEL_NUSES before
calling invert_jump.
From-SVN: r36529
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r-- | gcc/unroll.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c index 115aded..d37423f 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -2050,10 +2050,12 @@ copy_loop_body (loop, copy_start, copy_end, map, exit_label, last_iteration, if (JUMP_LABEL (insn) == start_label && insn == copy_end && ! last_iteration) { - /* Update JUMP_LABEL correctly to make invert_jump working. */ + /* Update JUMP_LABEL make invert_jump work correctly. */ JUMP_LABEL (copy) = get_label_from_map (map, CODE_LABEL_NUMBER (JUMP_LABEL (insn))); + LABEL_NUSES (JUMP_LABEL (copy))++; + /* This is a branch to the beginning of the loop; this is the last insn being copied; and this is not the last iteration. In this case, we want to change the original fall through |