Commit 51a7f205 by Zdenek Dvorak Committed by Zdenek Dvorak

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
parent 4a023207
2003-06-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* loop.c (count_one_set): Fix detection of registers set in more
than one basic block.
2003-06-29 Andreas Jaeger <aj@suse.de> 2003-06-29 Andreas Jaeger <aj@suse.de>
* target-def.h: Remove usage of OBJECT_FORMAT_ROSE. * target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
......
...@@ -3617,7 +3617,7 @@ count_one_set (regs, insn, x, last_set) ...@@ -3617,7 +3617,7 @@ count_one_set (regs, insn, x, last_set)
it must be set in two basic blocks, so it cannot it must be set in two basic blocks, so it cannot
be moved out of the loop. */ be moved out of the loop. */
if (regs->array[regno].set_in_loop > 0 if (regs->array[regno].set_in_loop > 0
&& last_set == 0) && last_set[regno] == 0)
regs->array[regno+i].may_not_optimize = 1; regs->array[regno+i].may_not_optimize = 1;
/* If this is not first setting in current basic block, /* If this is not first setting in current basic block,
see if reg was used in between previous one and this. see if reg was used in between previous one and this.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment