diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2021-01-14 13:21:56 +0100 |
---|---|---|
committer | Uros Bizjak <ubizjak@gmail.com> | 2021-01-14 13:23:13 +0100 |
commit | 08a4adcf2b6ded2fea97195c715757df61a23395 (patch) | |
tree | ad2c0c7ac90de8ec6bbf786d22f3bbc4dc554b8c /gcc | |
parent | 0efdc7b31c2aeb3b0414a838e90014172b87302f (diff) | |
download | gcc-08a4adcf2b6ded2fea97195c715757df61a23395.zip gcc-08a4adcf2b6ded2fea97195c715757df61a23395.tar.gz gcc-08a4adcf2b6ded2fea97195c715757df61a23395.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/i386/i386-options.c | 11 | ||||
-rw-r--r-- | gcc/config/i386/i386-options.h | 2 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 | ||||
-rw-r--r-- | gcc/config/i386/i386.h | 4 |
4 files changed, 9 insertions, 10 deletions
diff --git a/gcc/config/i386/i386-options.c b/gcc/config/i386/i386-options.c index 6afd7a9..4e0165f 100644 --- a/gcc/config/i386/i386-options.c +++ b/gcc/config/i386/i386-options.c @@ -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) diff --git a/gcc/config/i386/i386-options.h b/gcc/config/i386/i386-options.h index 67bc5ef..cdaca26 100644 --- a/gcc/config/i386/i386-options.h +++ b/gcc/config/i386/i386-options.h @@ -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; diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index d35af37..48f9aa0 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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; diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index 8dd0354..f032746 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -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) |