aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorZdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>2003-06-29 22:42:42 +0200
committerZdenek Dvorak <rakdver@gcc.gnu.org>2003-06-29 20:42:42 +0000
commit51a7f2053aff54ea60592d8105860b7c30867a38 (patch)
treef8c8f66b56f7538d64e438c24f46ca482b569350 /gcc/loop.c
parent4a023207acdb2b49f5bff02b300b4c6698e29269 (diff)
downloadgcc-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index ae7edab..8c6a0e5 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -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.