Message ID | 20240920124558.9141313AA7@imap1.dmz-prg2.suse.org |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org> 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=bVCbam2O; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=I8zY5b4O; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=bVCbam2O; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=I8zY5b4O; 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 4X9BwK2btdz1xrD for <incoming@patchwork.ozlabs.org>; Fri, 20 Sep 2024 22:46:40 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DC881385840A for <incoming@patchwork.ozlabs.org>; Fri, 20 Sep 2024 12:46:37 +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 [195.135.223.130]) by sourceware.org (Postfix) with ESMTPS id B15B53858D29 for <gcc-patches@gcc.gnu.org>; Fri, 20 Sep 2024 12:45:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B15B53858D29 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 B15B53858D29 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726836367; cv=none; b=jBjJ5HgFG13gZHkU7Ui3Ny1kD/SvWcWYM55NXa/EhQ2DOoT/EvXcqBR70Vh2eF/lI6l/4qjzKKmQxZiUznvQjNE7AOdjWxzIniwabqMxvIlonCLvSwjg6omvhc6bKb1RbuvVI8DLsyhW2pj3E3gDJglz401UFz2c44SfBaaa7qI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726836367; c=relaxed/simple; bh=MmdqOZhXFEWRS8OKoyo75SVfLjEViwZJ6BzPRizY6ZQ=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:Date: From:To:Subject:MIME-Version:Message-Id; b=w4IxjRJlbgKhmeXG4h4vVz/Tf7Os3jJNgmeuXQ0SkYp1SRhbjQUzL5fwfJ4KVmiSIjwSBRDh6XRcupnAvaV0TFdgPeJ+NBBzo1O1DbUl6RgudFoc61rfSRLjs4HHaC+/UxmdjzS9yk+17qJCgtPsT7E+wxi0uj4NDVJOFWJvAd8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from imap1.dmz-prg2.suse.org (unknown [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-out1.suse.de (Postfix) with ESMTPS id B506933A47 for <gcc-patches@gcc.gnu.org>; Fri, 20 Sep 2024 12:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1726836358; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=9+MtZXhmk3yQt/lUeX6aWdD/pwCTCMFC1A/H+GzI2do=; b=bVCbam2ORziQYrIvC/mbeWgzEv8nkJsbWB7OmIgUnAeIGK3CAmfXzFMpCghTj9STCgurJ9 sHF8A9k6AzWV9PrfXJoPKPwIgt2xoClQPkXKznRudKDgVhi3bHDnQOvshYru1YLHBcotVd OUQ6d8PWMiuHgVjHJ+JS8PGw8Ix3wEk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1726836358; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=9+MtZXhmk3yQt/lUeX6aWdD/pwCTCMFC1A/H+GzI2do=; b=I8zY5b4OZlZtfjHFnAODgGIw4GzDKKvxzjoF+Tjew/2GJJkJd+a0dgjFqJGxUyWmuHvca/ wMT82JmEA5fmdJBQ== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1726836358; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=9+MtZXhmk3yQt/lUeX6aWdD/pwCTCMFC1A/H+GzI2do=; b=bVCbam2ORziQYrIvC/mbeWgzEv8nkJsbWB7OmIgUnAeIGK3CAmfXzFMpCghTj9STCgurJ9 sHF8A9k6AzWV9PrfXJoPKPwIgt2xoClQPkXKznRudKDgVhi3bHDnQOvshYru1YLHBcotVd OUQ6d8PWMiuHgVjHJ+JS8PGw8Ix3wEk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1726836358; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=9+MtZXhmk3yQt/lUeX6aWdD/pwCTCMFC1A/H+GzI2do=; b=I8zY5b4OZlZtfjHFnAODgGIw4GzDKKvxzjoF+Tjew/2GJJkJd+a0dgjFqJGxUyWmuHvca/ wMT82JmEA5fmdJBQ== 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 9141313AA7 for <gcc-patches@gcc.gnu.org>; Fri, 20 Sep 2024 12:45:58 +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 V7zaIYZu7WZyLgAAD6G6ig (envelope-from <rguenther@suse.de>) for <gcc-patches@gcc.gnu.org>; Fri, 20 Sep 2024 12:45:58 +0000 Date: Fri, 20 Sep 2024 14:45:54 +0200 (CEST) From: Richard Biener <rguenther@suse.de> To: gcc-patches@gcc.gnu.org Subject: [PATCH] Handle patterns as SLP roots of only live stmts MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Message-Id: <20240920124558.9141313AA7@imap1.dmz-prg2.suse.org> X-Spam-Score: -4.30 X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; PREVIOUSLY_DELIVERED(0.00)[gcc-patches@gcc.gnu.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:mid, imap1.dmz-prg2.suse.org:helo] X-Spam-Level: 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 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
Handle patterns as SLP roots of only live stmts
|
expand
|
diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc index c8af4d320eb..9c817de18bd 100644 --- a/gcc/tree-vect-slp.cc +++ b/gcc/tree-vect-slp.cc @@ -4723,6 +4723,7 @@ vect_analyze_slp (vec_info *vinfo, unsigned max_tree_size, if (TREE_CODE (def) == SSA_NAME && !virtual_operand_p (def) && (stmt_info = loop_vinfo->lookup_def (def)) + && ((stmt_info = vect_stmt_to_vectorize (stmt_info)), true) && STMT_VINFO_RELEVANT (stmt_info) == vect_used_only_live && STMT_VINFO_LIVE_P (stmt_info) && (STMT_VINFO_DEF_TYPE (stmt_info) == vect_induction_def