Commit 16b702cd by Mark Mitchell Committed by Mark Mitchell

cse.c (cse_end_of_basic_block): Don't return the end of a basic block reached by a branch if...

	* cse.c (cse_end_of_basic_block): Don't return the end of a basic
	block reached by a branch if we're not going to actually process
	this block

From-SVN: r30109
parent 56d410bb
Wed Oct 20 20:41:46 1999 Mark Mitchell <mark@codesourcery.com>
* cse.c (cse_end_of_basic_block): Don't return the end of a basic
block reached by a branch if we're not going to actually process
this block.
Wed Oct 20 15:18:42 1999 Jim Wilson <wilson@cygnus.com>
* integrate.c (integrate_decl_tree): Set DECL_CONTEXT to 0 if this is
......
......@@ -8442,6 +8442,15 @@ cse_end_of_basic_block (insn, data, follow_jumps, after_loop, skip_blocks)
path_size--;
}
/* If the first instruction is marked with QImode, that means we've
already processed this block. Our caller will look at DATA->LAST
to figure out where to go next. We want to return the next block
in the instruction stream, not some branched-to block somewhere
else. We accomplish this by pretending our called forbid us to
follow jumps, or skip blocks. */
if (GET_MODE (insn) == QImode)
follow_jumps = skip_blocks = 0;
/* Scan to end of this basic block. */
while (p && GET_CODE (p) != CODE_LABEL)
{
......
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