From de5f07bf6960e691e2d030ab536868492bc83bad Mon Sep 17 00:00:00 2001 From: rth Date: Sun, 15 Jul 2001 00:00:56 +0000 Subject: * ifcvt.c (find_cond_trap): Test for exit block. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44009 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ifcvt.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/ifcvt.c') diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 6196522d228..d23fd3a7682 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -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 -- cgit v1.2.1