i386: Remove reduntand assignment in i386-options.c [PR98671]
Also rename x86_prefetch_sse to ix86_prefetch_sse. 2021-01-14 Uroš Bizjak <ubizjak@gmail.com> gcc/ PR target/98671 * config/i386/i386-options.c (ix86_function_specific_save): Remove redundant assignment to opts->x_ix86_branch_cost. * config/i386/i386.c (ix86_prefetch_sse): Rename from x86_prefetch_sse. Update all uses. * config/i386/i386.h: Update for rename. * config/i386/i386-options.h: Ditto.
This commit is contained in:
parent
0efdc7b31c
commit
08a4adcf2b
4 changed files with 9 additions and 10 deletions
|
@ -641,7 +641,7 @@ ix86_function_specific_save (struct cl_target_option *ptr,
|
|||
{
|
||||
ptr->arch = ix86_arch;
|
||||
ptr->schedule = ix86_schedule;
|
||||
ptr->prefetch_sse = x86_prefetch_sse;
|
||||
ptr->prefetch_sse = ix86_prefetch_sse;
|
||||
ptr->tune = ix86_tune;
|
||||
ptr->branch_cost = ix86_branch_cost;
|
||||
ptr->tune_defaulted = ix86_tune_defaulted;
|
||||
|
@ -773,8 +773,7 @@ ix86_function_specific_restore (struct gcc_options *opts,
|
|||
ix86_arch = (enum processor_type) ptr->arch;
|
||||
ix86_schedule = (enum attr_cpu) ptr->schedule;
|
||||
ix86_tune = (enum processor_type) ptr->tune;
|
||||
x86_prefetch_sse = ptr->prefetch_sse;
|
||||
opts->x_ix86_branch_cost = ptr->branch_cost;
|
||||
ix86_prefetch_sse = ptr->prefetch_sse;
|
||||
ix86_tune_defaulted = ptr->tune_defaulted;
|
||||
ix86_arch_specified = ptr->arch_specified;
|
||||
opts->x_ix86_isa_flags_explicit = ptr->x_ix86_isa_flags_explicit;
|
||||
|
@ -2348,7 +2347,7 @@ ix86_option_override_internal (bool main_args_p,
|
|||
|
||||
if ((processor_alias_table[i].flags
|
||||
& (PTA_PREFETCH_SSE | PTA_SSE)) != 0)
|
||||
x86_prefetch_sse = true;
|
||||
ix86_prefetch_sse = true;
|
||||
if (((processor_alias_table[i].flags & PTA_MWAITX) != 0)
|
||||
&& !(opts->x_ix86_isa_flags2_explicit & OPTION_MASK_ISA2_MWAITX))
|
||||
opts->x_ix86_isa_flags2 |= OPTION_MASK_ISA2_MWAITX;
|
||||
|
@ -2446,7 +2445,7 @@ ix86_option_override_internal (bool main_args_p,
|
|||
if (TARGET_CMOV
|
||||
&& ((processor_alias_table[i].flags
|
||||
& (PTA_PREFETCH_SSE | PTA_SSE)) != 0))
|
||||
x86_prefetch_sse = true;
|
||||
ix86_prefetch_sse = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -2589,7 +2588,7 @@ ix86_option_override_internal (bool main_args_p,
|
|||
|| (TARGET_PRFCHW_P (opts->x_ix86_isa_flags)
|
||||
&& !TARGET_3DNOW_P (opts->x_ix86_isa_flags))
|
||||
|| TARGET_PREFETCHWT1_P (opts->x_ix86_isa_flags))
|
||||
x86_prefetch_sse = true;
|
||||
ix86_prefetch_sse = true;
|
||||
|
||||
/* Enable popcnt instruction for -msse4.2 or -mabm. */
|
||||
if (TARGET_SSE4_2_P (opts->x_ix86_isa_flags)
|
||||
|
|
|
@ -33,7 +33,7 @@ extern enum attr_cpu ix86_schedule;
|
|||
|
||||
extern enum processor_type ix86_tune;
|
||||
extern enum processor_type ix86_arch;
|
||||
extern unsigned char x86_prefetch_sse;
|
||||
extern unsigned char ix86_prefetch_sse;
|
||||
extern const struct processor_costs *ix86_tune_cost;
|
||||
|
||||
extern int ix86_tune_defaulted;
|
||||
|
|
|
@ -347,7 +347,7 @@ enum processor_type ix86_tune;
|
|||
enum processor_type ix86_arch;
|
||||
|
||||
/* True if processor has SSE prefetch instruction. */
|
||||
unsigned char x86_prefetch_sse;
|
||||
unsigned char ix86_prefetch_sse;
|
||||
|
||||
/* Preferred alignment for stack boundary in bits. */
|
||||
unsigned int ix86_preferred_stack_boundary;
|
||||
|
|
|
@ -654,8 +654,8 @@ extern unsigned char ix86_arch_features[X86_ARCH_LAST];
|
|||
|
||||
#define TARGET_FISTTP (TARGET_SSE3 && TARGET_80387)
|
||||
|
||||
extern unsigned char x86_prefetch_sse;
|
||||
#define TARGET_PREFETCH_SSE x86_prefetch_sse
|
||||
extern unsigned char ix86_prefetch_sse;
|
||||
#define TARGET_PREFETCH_SSE ix86_prefetch_sse
|
||||
|
||||
#define ASSEMBLER_DIALECT (ix86_asm_dialect)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue