aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Edelsohn <dje@gcc.gnu.org>2004-08-04 19:38:34 -0400
committerDavid Edelsohn <dje@gcc.gnu.org>2004-08-04 19:38:34 -0400
commit30a555d98e236182b101830e65150b128727a8b9 (patch)
tree6954e4cc0e599ac52ef1ec3539f9c0260ef34a4c /gcc
parentf1ff6bb8a9efa8e6b94d6a2f7b12a20ff0d65537 (diff)
downloadgcc-30a555d98e236182b101830e65150b128727a8b9.zip
gcc-30a555d98e236182b101830e65150b128727a8b9.tar.gz
gcc-30a555d98e236182b101830e65150b128727a8b9.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/rs6000/rs6000.c8
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9f50220..e480dd1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index b571094..035c025 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -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)
{