diff options
author | Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> | 2003-06-29 22:42:42 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2003-06-29 20:42:42 +0000 |
commit | 51a7f2053aff54ea60592d8105860b7c30867a38 (patch) | |
tree | f8c8f66b56f7538d64e438c24f46ca482b569350 /gcc/loop.c | |
parent | 4a023207acdb2b49f5bff02b300b4c6698e29269 (diff) | |
download | gcc-51a7f2053aff54ea60592d8105860b7c30867a38.zip gcc-51a7f2053aff54ea60592d8105860b7c30867a38.tar.gz gcc-51a7f2053aff54ea60592d8105860b7c30867a38.tar.bz2 |
loop.c (count_one_set): Fix detection of registers set in more than one basic block.
* loop.c (count_one_set): Fix detection of registers set in more
than one basic block.
From-SVN: r68680
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3617,7 +3617,7 @@ count_one_set (regs, insn, x, last_set) it must be set in two basic blocks, so it cannot be moved out of the loop. */ if (regs->array[regno].set_in_loop > 0 - && last_set == 0) + && last_set[regno] == 0) regs->array[regno+i].may_not_optimize = 1; /* If this is not first setting in current basic block, see if reg was used in between previous one and this. |