From patchwork Thu Oct 31 14:15:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 2004683 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=d0VkRu7k; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=PgX2wyqY; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=d0VkRu7k; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=PgX2wyqY; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; 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 [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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XfQym2jN1z1xx7 for ; Fri, 1 Nov 2024 01:16:16 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B55133857400 for ; Thu, 31 Oct 2024 14:16:13 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) by sourceware.org (Postfix) with ESMTPS id 8A5A33857835 for ; Thu, 31 Oct 2024 14:15:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8A5A33857835 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 8A5A33857835 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a07:de40:b251:101:10:150:64:1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730384154; cv=none; b=DTlNU/NiF0tOvv4NSp4FCibMAGV3wHMdz2OkPQOvGcE3UuOdVpkzlc3uHfDbWDztOOfFdFAva2EYMKCNno64gY79pIs/5mt5dnr8wbBC9wtGVcq2ctLtXJeF1wtmuw1fXDWDllUXuZKPOe+6TK04a8sqPRJS5XZJbaYQxamYr3o= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730384154; c=relaxed/simple; bh=8LxmkvxJVTpFXym0/ubJsO2xhX73o9JsRg6NIpAJqoo=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:Date: From:To:Subject:MIME-Version; b=RxTJb42X/HFV2WrthdeAspBULWooZNN2qyY97qGEiEtqUnaH6nybFhbcPEJQDgUFbyFJ5SDSX3OQOF4nxWmKt64VaY7Gr/YOe/ExtsmkqOi8wvWE4mV5RrbDt5z/QuMG3Btop/K5FMYLZmI++qu1/2KRtSq8HHAJmT47eZnabHw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from murzim.nue2.suse.org (unknown [10.168.4.243]) (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-out1.suse.de (Postfix) with ESMTPS id 6EA7F22013 for ; Thu, 31 Oct 2024 14:15:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1730384144; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=KGrSadDWoVy23d6eErkmsvc5UXCqnovYbcAgzJmLkz8=; b=d0VkRu7kWsAlry86tiwyjrigCj9n42G5UGpd6Pe+3lTX6g68ssXhmSt0j61k4C68achhHR XZCIy5G8hqI0lLcy+KjIvDBC7ED8/HEO6g4/pdt6AguW94M0eFwAFNEfYxWMquUDzrw0gP b5VX7sgFYMhl5ZxzMMXygNQrjBOAtQw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1730384144; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=KGrSadDWoVy23d6eErkmsvc5UXCqnovYbcAgzJmLkz8=; b=PgX2wyqYFnIlxWGX/X0BQsV4FAidFRCLuo/7CkT9/jBE6yOvqzQx+sxixnOjMclsXkpw6m Lv9NbVTpc5k+2IDQ== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1730384144; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=KGrSadDWoVy23d6eErkmsvc5UXCqnovYbcAgzJmLkz8=; b=d0VkRu7kWsAlry86tiwyjrigCj9n42G5UGpd6Pe+3lTX6g68ssXhmSt0j61k4C68achhHR XZCIy5G8hqI0lLcy+KjIvDBC7ED8/HEO6g4/pdt6AguW94M0eFwAFNEfYxWMquUDzrw0gP b5VX7sgFYMhl5ZxzMMXygNQrjBOAtQw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1730384144; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=KGrSadDWoVy23d6eErkmsvc5UXCqnovYbcAgzJmLkz8=; b=PgX2wyqYFnIlxWGX/X0BQsV4FAidFRCLuo/7CkT9/jBE6yOvqzQx+sxixnOjMclsXkpw6m Lv9NbVTpc5k+2IDQ== Date: Thu, 31 Oct 2024 15:15:44 +0100 (CET) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH 1/2] Preserve ->move_dr behavior when adjusting epilogue info MIME-Version: 1.0 X-Spamd-Result: default: False [-0.92 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MISSING_MID(2.50)[]; NEURAL_HAM_LONG(-0.31)[-0.310]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_SHORT(-0.01)[-0.063]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ZERO(0.00)[0]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[] 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 Message-Id: <20241031141613.B55133857400@sourceware.org> When update_epilogue_loop_vinfo relates the shared loop DRs with the epilogue stmts and infos it should not fiddle with how pattern recognition applied move_dr. Bootstrapped and tested on x86_64-unknown-linux-gnu. * tree-vect-loop.cc (update_epilogue_loop_vinfo): A DRs main stmt vinfo dr_aux should refer to a pattern stmt which is how move_dr sets this up. We shouldn't undo this. --- gcc/tree-vect-loop.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc index df89edac036..ac901e52743 100644 --- a/gcc/tree-vect-loop.cc +++ b/gcc/tree-vect-loop.cc @@ -12290,7 +12290,7 @@ update_epilogue_loop_vinfo (class loop *epilogue, tree advance) &find_in_mapping, &mapping); } DR_STMT (dr) = STMT_VINFO_STMT (stmt_vinfo); - stmt_vinfo->dr_aux.stmt = stmt_vinfo; + stmt_vinfo->dr_aux.stmt = vstmt_vinfo; } epilogue_vinfo->shared->datarefs_copy.release ();