Commit 3f55b339 by J"orn Rennecke Committed by Joern Rennecke

postreload-gcse.c: Include target.h.

	* postreload-gcse.c: Include target.h.
	(gcse_after_reload_main): Return early if we cannot modify jumps.
	* Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).

From-SVN: r97332
parent 1e3a2100
2005-03-31 J"orn Rennecke <joern.rennecke@st.com>
* postreload-gcse.c: Include target.h.
(gcse_after_reload_main): Return early if we cannot modify jumps.
* Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
2005-03-31 David Edelsohn <edelsohn@gnu.org> 2005-03-31 David Edelsohn <edelsohn@gnu.org>
* tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
......
...@@ -2113,7 +2113,7 @@ postreload.o : postreload.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) ...@@ -2113,7 +2113,7 @@ postreload.o : postreload.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H)
postreload-gcse.o : postreload-gcse.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ postreload-gcse.o : postreload-gcse.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
$(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) real.h insn-config.h $(GGC_H) \ $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) real.h insn-config.h $(GGC_H) \
$(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) function.h output.h toplev.h $(TM_P_H) \ $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) function.h output.h toplev.h $(TM_P_H) \
except.h $(TREE_H) except.h $(TREE_H) $(TARGET_H)
caller-save.o : caller-save.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \ caller-save.o : caller-save.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
$(FLAGS_H) $(REGS_H) hard-reg-set.h insn-config.h $(BASIC_BLOCK_H) function.h \ $(FLAGS_H) $(REGS_H) hard-reg-set.h insn-config.h $(BASIC_BLOCK_H) function.h \
$(RECOG_H) reload.h $(EXPR_H) toplev.h $(TM_P_H) $(RECOG_H) reload.h $(EXPR_H) toplev.h $(TM_P_H)
......
...@@ -43,6 +43,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -43,6 +43,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "obstack.h" #include "obstack.h"
#include "hashtab.h" #include "hashtab.h"
#include "params.h" #include "params.h"
#include "target.h"
/* The following code implements gcse after reload, the purpose of this /* The following code implements gcse after reload, the purpose of this
pass is to cleanup redundant loads generated by reload and other pass is to cleanup redundant loads generated by reload and other
...@@ -1283,6 +1284,10 @@ delete_redundant_insns (void) ...@@ -1283,6 +1284,10 @@ delete_redundant_insns (void)
void void
gcse_after_reload_main (rtx f ATTRIBUTE_UNUSED) gcse_after_reload_main (rtx f ATTRIBUTE_UNUSED)
{ {
if (targetm.cannot_modify_jumps_p ())
return;
memset (&stats, 0, sizeof (stats)); memset (&stats, 0, sizeof (stats));
/* Allocate ememory for this pass. /* Allocate ememory for this pass.
......
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