Commit 6b97a439 by Bernd Schmidt Committed by Bernd Schmidt

bfin.c (legitimize_pic_address): Lose dead code that tests for CONSTANT_POOL_ADDRESS_P.

	* config/bfin/bfin.c (legitimize_pic_address): Lose dead code
	that tests for CONSTANT_POOL_ADDRESS_P.

From-SVN: r118854
parent 0f14009a
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
* tree-ssa-loop-ivopts.c (determine_iv_costs): Fix formatting. * tree-ssa-loop-ivopts.c (determine_iv_costs): Fix formatting.
* config/bfin/bfin.c (legitimize_pic_address): Lose dead code
that tests for CONSTANT_POOL_ADDRESS_P.
2006-11-15 Jakub Jelinek <jakub@redhat.com> 2006-11-15 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/29581 PR tree-optimization/29581
......
...@@ -145,10 +145,6 @@ legitimize_pic_address (rtx orig, rtx reg, rtx picreg) ...@@ -145,10 +145,6 @@ legitimize_pic_address (rtx orig, rtx reg, rtx picreg)
if (GET_CODE (addr) == SYMBOL_REF || GET_CODE (addr) == LABEL_REF) if (GET_CODE (addr) == SYMBOL_REF || GET_CODE (addr) == LABEL_REF)
{ {
if (GET_CODE (addr) == SYMBOL_REF && CONSTANT_POOL_ADDRESS_P (addr))
reg = new = orig;
else
{
int unspec; int unspec;
rtx tmp; rtx tmp;
...@@ -156,13 +152,9 @@ legitimize_pic_address (rtx orig, rtx reg, rtx picreg) ...@@ -156,13 +152,9 @@ legitimize_pic_address (rtx orig, rtx reg, rtx picreg)
unspec = UNSPEC_MOVE_PIC; unspec = UNSPEC_MOVE_PIC;
else if (GET_CODE (addr) == SYMBOL_REF else if (GET_CODE (addr) == SYMBOL_REF
&& SYMBOL_REF_FUNCTION_P (addr)) && SYMBOL_REF_FUNCTION_P (addr))
{
unspec = UNSPEC_FUNCDESC_GOT17M4; unspec = UNSPEC_FUNCDESC_GOT17M4;
}
else else
{
unspec = UNSPEC_MOVE_FDPIC; unspec = UNSPEC_MOVE_FDPIC;
}
if (reg == 0) if (reg == 0)
{ {
...@@ -174,7 +166,6 @@ legitimize_pic_address (rtx orig, rtx reg, rtx picreg) ...@@ -174,7 +166,6 @@ legitimize_pic_address (rtx orig, rtx reg, rtx picreg)
new = gen_const_mem (Pmode, gen_rtx_PLUS (Pmode, picreg, tmp)); new = gen_const_mem (Pmode, gen_rtx_PLUS (Pmode, picreg, tmp));
emit_move_insn (reg, new); emit_move_insn (reg, new);
}
if (picreg == pic_offset_table_rtx) if (picreg == pic_offset_table_rtx)
current_function_uses_pic_offset_table = 1; current_function_uses_pic_offset_table = 1;
return reg; return reg;
......
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