From patchwork Tue Jan 18 12:16:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 50155 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5F5293857C48 for ; Tue, 18 Jan 2022 12:17:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5F5293857C48 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1642508262; bh=NwNYd436MJzS1aAryfAJVDXgHQ6P1qVAjP/N3UuiVaw=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=P7cKpTqtUR8h5JYAY6BpPU4L6FyT8zXHLNc0qbTTnKDlwN5HVoV9SjaI6CW3bBt5x amsq0fLm0SjKv/hqURQA6P+qcq/ygM6Nj87sE8BfcYkP5lo50YSpl9q3hOTXH0ke4F T4R5zeQMAQyjGuC7L+xT7/krKC1HTBvkMpb7DU2Q= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id E7DC73857C73 for ; Tue, 18 Jan 2022 12:16:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E7DC73857C73 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id E65611F3A1 for ; Tue, 18 Jan 2022 12:16:38 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C6BBA13B26 for ; Tue, 18 Jan 2022 12:16:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 8B1zL6av5mHGawAAMHmgww (envelope-from ) for ; Tue, 18 Jan 2022 12:16:38 +0000 Date: Tue, 18 Jan 2022 13:16:38 +0100 (CET) To: gcc-patches@gcc.gnu.org Subject: [PATCH] pack fields in cgraph_simd_clone_arg and struct function Message-ID: MIME-Version: 1.0 X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Richard Biener via Gcc-patches From: Richard Biener Reply-To: Richard Biener Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" As pointed out by pahole. Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. 2022-01-18 Richard Biener * cgraph.h (struct cgraph_simd_clone_arg): Re-arrange fields to avoid padding. * function.h (struct function): Likewise. --- gcc/cgraph.h | 6 +++--- gcc/function.h | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/gcc/cgraph.h b/gcc/cgraph.h index a265107de58..43fc94e69ea 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -764,14 +764,14 @@ struct GTY(()) cgraph_simd_clone_arg { variable), uniform, or vector. */ enum cgraph_simd_clone_arg_type arg_type; + /* Variable alignment if available, otherwise 0. */ + unsigned int alignment; + /* For arg_type SIMD_CLONE_ARG_TYPE_LINEAR_*CONSTANT_STEP this is the constant linear step, if arg_type is SIMD_CLONE_ARG_TYPE_LINEAR_*VARIABLE_STEP, this is index of the uniform argument holding the step, otherwise 0. */ HOST_WIDE_INT linear_step; - - /* Variable alignment if available, otherwise 0. */ - unsigned int alignment; }; /* Specific data for a SIMD function clone. */ diff --git a/gcc/function.h b/gcc/function.h index fb60979f9bd..098613766be 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -270,13 +270,6 @@ struct GTY(()) function { /* Value histograms attached to particular statements. */ htab_t GTY((skip)) value_histograms; - /* Different from normal TODO_flags which are handled right at the - beginning or the end of one pass execution, the pending_TODOs - are passed down in the pipeline until one of its consumers can - perform the requested action. Consumers should then clear the - flags for the actions that they have taken. */ - unsigned int pending_TODOs; - /* For function.cc. */ /* Points to the FUNCTION_DECL of this function. */ @@ -338,6 +331,13 @@ struct GTY(()) function { unsigned int curr_properties; unsigned int last_verified; + /* Different from normal TODO_flags which are handled right at the + beginning or the end of one pass execution, the pending_TODOs + are passed down in the pipeline until one of its consumers can + perform the requested action. Consumers should then clear the + flags for the actions that they have taken. */ + unsigned int pending_TODOs; + /* Non-null if the function does something that would prevent it from being copied; this applies to both versioning and inlining. Set to a string describing the reason for failure. */