* ifcvt.c (find_cond_trap): Test for exit block.
From-SVN: r44009
This commit is contained in:
parent
1e5fd09422
commit
35cbdf6fef
@ -1,3 +1,7 @@
|
||||
2001-04-14 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* ifcvt.c (find_cond_trap): Test for exit block.
|
||||
|
||||
Sun Jul 15 00:50:20 CEST 2001 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
Re-install recently reverted patch.
|
||||
|
@ -2018,6 +2018,11 @@ find_cond_trap (test_bb, then_edge, else_edge)
|
||||
else
|
||||
return FALSE;
|
||||
|
||||
/* Don't confuse a conditional return with something we want to
|
||||
optimize here. */
|
||||
if (trap_bb == EXIT_BLOCK_PTR)
|
||||
return FALSE;
|
||||
|
||||
/* The only instruction in the THEN block must be the trap. */
|
||||
trap = first_active_insn (trap_bb);
|
||||
if (! (trap == trap_bb->end
|
||||
|
Loading…
Reference in New Issue
Block a user