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
This commit is contained in:
David Edelsohn 2004-08-04 19:38:34 -04:00
parent f1ff6bb8a9
commit 30a555d98e
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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.

View 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)
{