From patchwork Tue Jun 11 09:00:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 1946186 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=1CKsexk2; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=Kp0Njk8T; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=1CKsexk2; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=Kp0Njk8T; 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 4Vz2h84WBgz20Py for ; Tue, 11 Jun 2024 19:00:39 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1A3493858C48 for ; Tue, 11 Jun 2024 09:00: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 1F524385B510 for ; Tue, 11 Jun 2024 09:00:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1F524385B510 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 1F524385B510 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=1718096409; cv=none; b=GDcx+2hM3rG5+bk5t3bdTvt5R76PVfhoZqE+2FjN5RwHAWQIWgureRCZFsYtpe+jiZum3pPIVKer1v5cukXcQUF3psCM93aF3OhLoK5hRVIF6mREDffyuOoLi6BIjlRctQQReMMGx4R6EkbEZSgdwkbvwNixa9xpNcccXUPIE2Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718096409; c=relaxed/simple; bh=v9COCH/Y+uzbYeY3S9klY6QiOsDLIK+M5CAFNiczEy0=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:Date: From:To:Subject:MIME-Version; b=eLJZmLBw3fqBWXhH0wv97cRrIsZ4ZsM8r0h0b/74AHb5XWzjREd5kc+V7oBeV6XvnqsdNodPVNlgqVSyMqnHF/l3JUxXlMDLZIiqBMgtL+TZe+EFyGA9Y1ViEGvcLzxXS701OOxMAwt4aoaUY5WwVdWmv+eeltNOBud8Jj0MSgs= 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 1881F22DCE for ; Tue, 11 Jun 2024 09:00:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718096406; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=VWPTs5koTJJ48YrazihdnLn0TJtkbp2FkNi3ROF7cZI=; b=1CKsexk2/AG/3hEnIE520VfkbIhMbLnXjx2oWq0C2NJdz8kqvZGFzAe7C/TDwYUnHYMBaU cqSxS8/19Zc2WDlzu/hvj1xEPHwStO6Td55b3MFTCGq2+b1XT2l4vgNEr04HUr6G4B3YZS WygNgkN4L8HMol6LS7mZEfOlUVjuGWk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718096406; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=VWPTs5koTJJ48YrazihdnLn0TJtkbp2FkNi3ROF7cZI=; b=Kp0Njk8TVgAe0AfLMO97sOhMrS08I0E9m9hvNH0Mokc0xIf8BDUIjEUsTES0VfM7bJYQ5E K/AYTaMf1bC51SBw== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718096406; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=VWPTs5koTJJ48YrazihdnLn0TJtkbp2FkNi3ROF7cZI=; b=1CKsexk2/AG/3hEnIE520VfkbIhMbLnXjx2oWq0C2NJdz8kqvZGFzAe7C/TDwYUnHYMBaU cqSxS8/19Zc2WDlzu/hvj1xEPHwStO6Td55b3MFTCGq2+b1XT2l4vgNEr04HUr6G4B3YZS WygNgkN4L8HMol6LS7mZEfOlUVjuGWk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718096406; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=VWPTs5koTJJ48YrazihdnLn0TJtkbp2FkNi3ROF7cZI=; b=Kp0Njk8TVgAe0AfLMO97sOhMrS08I0E9m9hvNH0Mokc0xIf8BDUIjEUsTES0VfM7bJYQ5E K/AYTaMf1bC51SBw== Date: Tue, 11 Jun 2024 11:00:06 +0200 (CEST) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH][v2] tree-optimization/114107 - avoid peeling for gaps in more cases MIME-Version: 1.0 X-Spam-Score: -1.59 X-Spam-Level: X-Spamd-Result: default: False [-1.59 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MISSING_MID(2.50)[]; NEURAL_HAM_LONG(-0.79)[-0.794]; NEURAL_HAM_SHORT(-0.19)[-0.970]; MIME_GOOD(-0.10)[text/plain]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FUZZY_BLOCKED(0.00)[rspamd.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MISSING_XM_UA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_NONE(0.00)[]; MIME_TRACE(0.00)[0:+] X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, MISSING_MID, 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 Message-Id: <20240611090037.1A3493858C48@sourceware.org> The following refactors the code to detect necessary peeling for gaps, in particular the PR103116 case when there is no gap but the group size is smaller than the vector size. The testcase in PR114107 shows we fail to SLP for (int i=0; i