From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by sourceware.org (Postfix) with ESMTPS id 53727385DC0D for ; Wed, 30 Aug 2023 12:55:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 53727385DC0D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 8A75C1F45F; Wed, 30 Aug 2023 12:54:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1693400099; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4IaLLDjUaCmdhhBKokJtTFwhFgTFb0a5/H2nz9AkO8Y=; b=hCHofHhHG8tdVwlAh4R3NeV0EJkrxm/R0oH7U9ku+Kavo7jCiZSAchI8CsmUFkiwSMI+WH RL5yTF33FWFxdqW2XXKzK28tkBFdBrvtOnju4QN4B7ZpJkUIh70Uu3/ysC1Lk5jCmWBqBD CTtfEOaFG7JfyElyuIzpISw2SN+HPtw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1693400099; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4IaLLDjUaCmdhhBKokJtTFwhFgTFb0a5/H2nz9AkO8Y=; b=OeINmv1V9mNI5hceNnNHLIBx8jJZqcNUF58AIl9s7QL7PYgoZj5FqBJ7Z0UDFIJdZw+VP9 oKzBZzyzqALigeBw== Received: from wotan.suse.de (wotan.suse.de [10.160.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 827BF2C142; Wed, 30 Aug 2023 12:54:59 +0000 (UTC) Date: Wed, 30 Aug 2023 12:54:59 +0000 (UTC) From: Richard Biener To: "Andre Vieira (lists)" cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH 4/8] vect: don't allow fully masked loops with non-masked simd clones [PR 110485] In-Reply-To: <49eca251-630e-b26c-5d66-4f8b322ee801@arm.com> Message-ID: References: <73b53052-c3a4-4028-2836-ade419431eda@arm.com> <49eca251-630e-b26c-5d66-4f8b322ee801@arm.com> User-Agent: Alpine 2.22 (LSU 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 List-Id: On Wed, 30 Aug 2023, Andre Vieira (lists) wrote: > When analyzing a loop and choosing a simdclone to use it is possible to choose > a simdclone that cannot be used 'inbranch' for a loop that can use partial > vectors. This may lead to the vectorizer deciding to use partial vectors > which are not supported for notinbranch simd clones. This patch fixes that by > disabling the use of partial vectors once a notinbranch simd clone has been > selected. OK. > gcc/ChangeLog: > > PR tree-optimization/110485 > * tree-vect-stmts.cc (vectorizable_simd_clone_call): Disable partial > vectors usage if a notinbranch simdclone has been selected. > > gcc/testsuite/ChangeLog: > > * gcc.dg/gomp/pr110485.c: New test. > -- Richard Biener SUSE Software Solutions Germany GmbH, Frankenstrasse 146, 90461 Nuernberg, Germany; GF: Ivo Totev, Andrew McDonald, Werner Knoblich; (HRB 36809, AG Nuernberg)