i386.h (CONST_COSTS): set cost of constants representable in immediate fields to 0.

* i386.h (CONST_COSTS): set cost of constants representable in
	immediate fields to 0.

From-SVN: r43045
This commit is contained in:
Jan Hubicka 2001-06-08 21:53:59 +02:00 committed by Jan Hubicka
parent 932f084749
commit 1acc845ecb
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,8 @@
Fri Jun 8 21:52:51 CEST 2001 Jan Hubicka <jh@suse.cz>
* i386.h (CONST_COSTS): set cost of constants representable in
immediate fields to 0.
Fri Jun 8 21:34:54 CEST 2001 Jan Hubicka <jh@suse.cz>
* function.c (diddle_return_value): Kill code to determine

View File

@ -2370,22 +2370,21 @@ while (0)
#define CONST_COSTS(RTX,CODE,OUTER_CODE) \
case CONST_INT: \
return (unsigned) INTVAL (RTX) < 256 ? 0 : 1; \
case CONST: \
case LABEL_REF: \
case SYMBOL_REF: \
return flag_pic && SYMBOLIC_CONST (RTX) ? 2 : 1; \
return flag_pic && SYMBOLIC_CONST (RTX) ? 1 : 0; \
\
case CONST_DOUBLE: \
{ \
int code; \
if (GET_MODE (RTX) == VOIDmode) \
return 2; \
return 0; \
\
code = standard_80387_constant_p (RTX); \
return code == 1 ? 0 : \
code == 2 ? 1 : \
2; \
return code == 1 ? 1 : \
code == 2 ? 2 : \
3; \
}
/* Delete the definition here when TOPLEVEL_COSTS_N_INSNS gets added to cse.c */