From patchwork Tue Sep 3 13:31:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 1980053 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=ZeajW55T; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=pK9okTnI; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=ZeajW55T; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=pK9okTnI; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wymkz6kKpz1yZ9 for ; Tue, 3 Sep 2024 23:32:27 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 328EE3861033 for ; Tue, 3 Sep 2024 13:32:26 +0000 (GMT) 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 [IPv6:2a07:de40:b251:101:10:150:64:2]) by sourceware.org (Postfix) with ESMTPS id AAE0F386102D for ; Tue, 3 Sep 2024 13:32:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AAE0F386102D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AAE0F386102D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a07:de40:b251:101:10:150:64:2 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725370327; cv=none; b=spMmmgwyMzSSYaUADX2/8Jkq72V7xDbFF44mxCXloXQPRkPCij/ioZFp4lWwlSwQ2NaTxT6QUUC4hp7lU3MzKgNNC4ERhPklc4s2E5CJLZt7KEs+evyZBs8aAwWpSAXVjS1hKIzn42NNpJsyWKgiSCLVAMF8Ix+Hi0sHuca+pFU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725370327; c=relaxed/simple; bh=uoMmPaZ12V3zgY0qBA8levi9c3ae3dhf8S/Vl9p0Xrk=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:Date: From:To:Subject:MIME-Version:Message-Id; b=lYR69QWjmaQu2I7iBzcePyLp46qTol1N20KI7ROD0VqyZNSHEYGwKCokFlupgjMTE0uImgcqJUaVPJloSN89Es/BUiQ6r4UKQps4OvIFKD2Rbkx1f/yv+BzMF48RxjX7nQ3ECR5671G47Lbgc17KGa01/TzCyvuM4l+RSCLKA4c= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (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 smtp-out2.suse.de (Postfix) with ESMTPS id 5F6B21F383 for ; Tue, 3 Sep 2024 13:32:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1725370323; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=JMiYJrbbzo22oyY0lQn52Z/ZbZfgMUmYc+QC1c4tpbY=; b=ZeajW55Tgb4yyofyOcGoVlCJDTCRkPZ4uW0pltFlI2e7OZXzhJvZdQxq4SiC6PY9hnFV4u BvMVlF4cS5j0/7hvPhEuoDBdM3q/uG1pKgnOGsjV0l6gLzJDcRnr6sy6M9ADbuZMg6xFhN 734RNtP+blU8Tp41HZAiWIxixi8qcPs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1725370323; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=JMiYJrbbzo22oyY0lQn52Z/ZbZfgMUmYc+QC1c4tpbY=; b=pK9okTnIeWQZAlYU/SVoQzo8BMiIse+xuVMf5cw5VAPTbZXLirw9XCvLX7YE2Jo/fR2fJo As9uf4PXs0ouCTAA== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=ZeajW55T; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=pK9okTnI DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1725370323; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=JMiYJrbbzo22oyY0lQn52Z/ZbZfgMUmYc+QC1c4tpbY=; b=ZeajW55Tgb4yyofyOcGoVlCJDTCRkPZ4uW0pltFlI2e7OZXzhJvZdQxq4SiC6PY9hnFV4u BvMVlF4cS5j0/7hvPhEuoDBdM3q/uG1pKgnOGsjV0l6gLzJDcRnr6sy6M9ADbuZMg6xFhN 734RNtP+blU8Tp41HZAiWIxixi8qcPs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1725370323; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=JMiYJrbbzo22oyY0lQn52Z/ZbZfgMUmYc+QC1c4tpbY=; b=pK9okTnIeWQZAlYU/SVoQzo8BMiIse+xuVMf5cw5VAPTbZXLirw9XCvLX7YE2Jo/fR2fJo As9uf4PXs0ouCTAA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (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 imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 4664213A52 for ; Tue, 3 Sep 2024 13:32:03 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id /N6dD9MP12bkSAAAD6G6ig (envelope-from ) for ; Tue, 03 Sep 2024 13:32:03 +0000 Date: Tue, 3 Sep 2024 15:31:58 +0200 (CEST) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] Dump whether a SLP node represents load/store-lanes MIME-Version: 1.0 Message-Id: <20240903133203.4664213A52@imap1.dmz-prg2.suse.org> X-Rspamd-Queue-Id: 5F6B21F383 X-Spam-Level: X-Spamd-Result: default: False [-6.51 / 50.00]; BAYES_HAM(-3.00)[99.99%]; DWL_DNSWL_MED(-2.00)[suse.de:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,imap1.dmz-prg2.suse.org:mid,imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[gcc-patches@gcc.gnu.org]; DKIM_TRACE(0.00)[suse.de:+] X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Rspamd-Action: no action X-Spam-Score: -6.51 X-Spam-Status: No, score=-11.7 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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org This makes it easier to discover whether SLP load or store nodes participate in load/store-lanes accesses. Bootstrapped on x86_64-unknown-linux-gnu, testing in progress. Richard. * tree-vect-slp.cc (vect_print_slp_tree): Annotate load and store-lanes nodes. --- gcc/tree-vect-slp.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc index 6fbe976e671..41bc92b138a 100644 --- a/gcc/tree-vect-slp.cc +++ b/gcc/tree-vect-slp.cc @@ -2958,14 +2958,17 @@ vect_print_slp_tree (dump_flags_t dump_kind, dump_location_t loc, dump_printf (dump_kind, " %u[%u]", SLP_TREE_LANE_PERMUTATION (node)[i].first, SLP_TREE_LANE_PERMUTATION (node)[i].second); - dump_printf (dump_kind, " }\n"); + dump_printf (dump_kind, " }%s\n", + node->ldst_lanes ? " (load-lanes)" : ""); } if (SLP_TREE_CHILDREN (node).is_empty ()) return; dump_printf_loc (metadata, user_loc, "\tchildren"); FOR_EACH_VEC_ELT (SLP_TREE_CHILDREN (node), i, child) dump_printf (dump_kind, " %p", (void *)child); - dump_printf (dump_kind, "\n"); + dump_printf (dump_kind, "%s\n", + node->ldst_lanes && !SLP_TREE_LANE_PERMUTATION (node).exists () + ? " (store-lanes)" : ""); } DEBUG_FUNCTION void