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:
parent
932f084749
commit
1acc845ecb
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user