Commit 30a555d9 by David Edelsohn

rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero cost.

        * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
        cost.

From-SVN: r85582
parent f1ff6bb8
2004-08-04 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
cost.
2004-08-04 Jan Hubicka <jh@suse.cz>
* basic-block.h (profile_staus): New global variable.
......@@ -206,7 +211,7 @@
* config/i386/xmmintrin.h: Include <mm_malloc.h>.
2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
Tanguy Fautrà <tfautre@pandora.be>
Tanguy Fautr <tfautre@pandora.be>
* config/i386/pmm_malloc.h: New file.
......
......@@ -16520,8 +16520,7 @@ rs6000_rtx_costs (rtx x, int code, int outer_code ATTRIBUTE_UNUSED,
switch (code)
{
/* On the RS/6000, if it is valid in the insn, it is free.
So this always returns 0. */
/* On the RS/6000, if it is valid in the insn, it is free. */
case CONST_INT:
if (((outer_code == SET
|| outer_code == PLUS
......@@ -16591,7 +16590,6 @@ rs6000_rtx_costs (rtx x, int code, int outer_code ATTRIBUTE_UNUSED,
case CONST:
case HIGH:
case LABEL_REF:
case SYMBOL_REF:
case MEM:
/* When optimizing for size, MEM should be slightly more expensive
......@@ -16600,6 +16598,10 @@ rs6000_rtx_costs (rtx x, int code, int outer_code ATTRIBUTE_UNUSED,
*total = optimize_size ? COSTS_N_INSNS (1) + 1 : COSTS_N_INSNS (2);
return true;
case LABEL_REF:
*total = 0;
return true;
case PLUS:
if (mode == DFmode)
{
......
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