Commit 28749cfb by Zdenek Dvorak Committed by Zdenek Dvorak

re PR rtl-optimization/26296 (ACATS ICE cxg2007 cxg2012 verify_flow_info failed)

	PR rtl-optimization/26296
	* Makefile.in (loop-invariant.c): Add except.h dependency.
	* loop-invariant.c: Include except.h.
	(find_invariant_insn): Ignore insns satisfying can_throw_internal.

From-SVN: r111139
parent b81ac288
2006-02-16 Zdenek Dvorak <dvorakz@suse.cz>
PR rtl-optimization/26296
* Makefile.in (loop-invariant.c): Add except.h dependency.
* loop-invariant.c: Include except.h.
(find_invariant_insn): Ignore insns satisfying can_throw_internal.
2005-02-16 Paul Brook <paul@codesourcery.com> 2005-02-16 Paul Brook <paul@codesourcery.com>
* reload1.c (emit_reload_insns): Invalidate dead input registers used * reload1.c (emit_reload_insns): Invalidate dead input registers used
......
...@@ -2423,7 +2423,7 @@ loop-iv.o : loop-iv.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(BASIC_BLOCK_H) \ ...@@ -2423,7 +2423,7 @@ loop-iv.o : loop-iv.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(BASIC_BLOCK_H) \
loop-invariant.o : loop-invariant.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) \ loop-invariant.o : loop-invariant.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) \
$(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) $(EXPR_H) coretypes.h \ $(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) $(EXPR_H) coretypes.h \
$(TM_H) $(TM_P_H) $(FUNCTION_H) $(FLAGS_H) $(DF_H) $(OBSTACK_H) output.h \ $(TM_H) $(TM_P_H) $(FUNCTION_H) $(FLAGS_H) $(DF_H) $(OBSTACK_H) output.h \
$(HASHTAB_H) $(HASHTAB_H) except.h
cfgloopmanip.o : cfgloopmanip.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) \ cfgloopmanip.o : cfgloopmanip.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) \
$(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) $(CFGLAYOUT_H) output.h \ $(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) $(CFGLAYOUT_H) output.h \
coretypes.h $(TM_H) cfghooks.h $(OBSTACK_H) coretypes.h $(TM_H) cfghooks.h $(OBSTACK_H)
......
...@@ -52,6 +52,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA ...@@ -52,6 +52,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
#include "flags.h" #include "flags.h"
#include "df.h" #include "df.h"
#include "hashtab.h" #include "hashtab.h"
#include "except.h"
/* The data stored for the loop. */ /* The data stored for the loop. */
...@@ -761,16 +762,14 @@ find_invariant_insn (rtx insn, bool always_reached, bool always_executed) ...@@ -761,16 +762,14 @@ find_invariant_insn (rtx insn, bool always_reached, bool always_executed)
|| !check_maybe_invariant (SET_SRC (set))) || !check_maybe_invariant (SET_SRC (set)))
return; return;
if (may_trap_p (PATTERN (insn))) /* If the insn can throw exception, we cannot move it at all without changing
{ cfg. */
if (!always_reached) if (can_throw_internal (insn))
return; return;
/* Unless the exceptions are handled, the behavior is undefined /* We cannot make trapping insn executed, unless it was executed before. */
if the trap occurs. */ if (may_trap_p (PATTERN (insn)) && !always_reached)
if (flag_non_call_exceptions) return;
return;
}
depends_on = BITMAP_ALLOC (NULL); depends_on = BITMAP_ALLOC (NULL);
if (!check_dependencies (insn, depends_on)) if (!check_dependencies (insn, depends_on))
......
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