From patchwork Thu Jan 14 12:25:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 1426320 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=YOzsoWFg; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DGk6s30KVz9sVr for ; Thu, 14 Jan 2021 23:25:39 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 12FC3386F808; Thu, 14 Jan 2021 12:25:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 12FC3386F808 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1610627137; bh=D714NYIF7XE6lTX9yPKWvu09Sx6YHQ6arE2m7vBdmXY=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=YOzsoWFg/KIEaf4fwJZQPBOgImbZ68YgfVbEeo2BziqY0enjRSQCppos4iZKCKLcT 3voengc2QITdZ7tKQo0+xrBTUzemYMwH6u636zDr2cDqqjbzGqc6coe9+9rkOLql/6 0QGkMMFPZRa2IOGlLMGjFTpCah7siRxbqrTO9zT4= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by sourceware.org (Postfix) with ESMTPS id C2748385782B for ; Thu, 14 Jan 2021 12:25:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C2748385782B Received: by mail-qv1-xf2a.google.com with SMTP id s6so2167706qvn.6 for ; Thu, 14 Jan 2021 04:25:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=D714NYIF7XE6lTX9yPKWvu09Sx6YHQ6arE2m7vBdmXY=; b=pEZ615HzNWtXeMkqilLbZjjU1rInmLL3/oIIhWp6ClgW9MNZRfPvG0YBJNLay6tAqf ngrMlHLFFLefuiDFNoMB9x4NVeOZlN0J436Onql0+gKO8FQeQNWfzGU84E3qynBd2rEP mjdOSXaH00bMjU7iouoEH6sKuigj/l6rcUT2i39dYA/9ayQ8dJNE4ESDeBQFV6NuR2CT D3EdnpuXAH6lOtj5MrOdTCF/FRTLWKWsYBC7SIc2bYffIL8875Er5iwVl4knWkFD72Ne GrIjLdLtQok7647Be35wOIZEPmZYlSn89x+BY3c6Zu3LtDaw9jmx8VW5E8K0/lxbf5Xc tcvA== X-Gm-Message-State: AOAM533ohBGLxuaiq9CRI7lGueWbYo9/aNvyW/ApzILB8nX6mWgdwv0/ /hQcSng20z+poQpfuUTDVzPybEyVVxy/h+O2372uHFNzTkQ90w== X-Google-Smtp-Source: ABdhPJzTvbfOzVpYcK5qzBvD7g86pauO3fsx09ucppe+e9nC9z+UgMf7ZJ7S6Iiuj1oOmWy3DvBiOsELWV8plLWWTJg= X-Received: by 2002:a0c:ebc2:: with SMTP id k2mr6789861qvq.24.1610627133184; Thu, 14 Jan 2021 04:25:33 -0800 (PST) MIME-Version: 1.0 Date: Thu, 14 Jan 2021 13:25:21 +0100 Message-ID: Subject: [PATCH] i386: Remove redundant assignment in i386-options.c [PR98671] To: "gcc-patches@gcc.gnu.org" X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Uros Bizjak via Gcc-patches From: Uros Bizjak Reply-To: Uros Bizjak Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Also rename x86_prefetch_sse to ix86_prefetch_sse. 2021-01-14 Uroš Bizjak 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. Bootstrapped and regression tested on x86_64-linux-gnu. Pushed to mainline. Uros. diff --git a/gcc/config/i386/i386-options.c b/gcc/config/i386/i386-options.c index 6afd7a9b1f2..4e0165ff32c 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 67bc5efcd8d..cdaca2644f4 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 d35af37a49c..48f9aa0d731 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 8dd0354309e..f032746d222 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)