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 @@
* 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>
PR tree-optimization/29581
......
......@@ -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 && CONSTANT_POOL_ADDRESS_P (addr))
reg = new = orig;
else
{
int unspec;
rtx tmp;
......@@ -156,13 +152,9 @@ legitimize_pic_address (rtx orig, rtx reg, rtx picreg)
unspec = UNSPEC_MOVE_PIC;
else if (GET_CODE (addr) == SYMBOL_REF
&& SYMBOL_REF_FUNCTION_P (addr))
{
unspec = UNSPEC_FUNCDESC_GOT17M4;
}
else
{
unspec = UNSPEC_MOVE_FDPIC;
}
if (reg == 0)
{
......@@ -174,7 +166,6 @@ legitimize_pic_address (rtx orig, rtx reg, rtx picreg)
new = gen_const_mem (Pmode, gen_rtx_PLUS (Pmode, picreg, tmp));
emit_move_insn (reg, new);
}
if (picreg == pic_offset_table_rtx)
current_function_uses_pic_offset_table = 1;
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