From patchwork Tue Apr 23 13:38:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 1926591 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=ucw.cz header.i=@ucw.cz header.a=rsa-sha256 header.s=gen1 header.b=g1BQ5YcT; 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 4VP3B41Qpzz1yP2 for ; Tue, 23 Apr 2024 23:39:07 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3073C384AB45 for ; Tue, 23 Apr 2024 13:39:05 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) by sourceware.org (Postfix) with ESMTPS id 6EAE33858C42 for ; Tue, 23 Apr 2024 13:38:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6EAE33858C42 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=ucw.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kam.mff.cuni.cz ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6EAE33858C42 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=195.113.20.16 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713879527; cv=none; b=u9Oj8kObhEYbbotrFrEa9mGM6jcHNiWnHaiBPTWkqiXkrOmzSQ/l0vdzeQCdJ4x7j3MTZM4GCJXInp6FEDjg4R95Kb77v97BT6dYYON1jxgvNTvB5SUANk3o+8XfCCS1A7cnqeVMTdSHqg8OalWTwdWCXknDm2Gxk0VJ0026QTM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713879527; c=relaxed/simple; bh=Do84/mYhIQHYSsdGQQpxWoqa0oy9SM1ybzgjDc0TAsw=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=lrHqVbNdAfm2mbshruo2LJr/da7XMMK0TICkHnbf3XZ6ETHTHGLnmIZll/dOR+kfDLZGnESwFHa0uY7b+UGzriqrcoTplbqMJmRmbONaVpTY/psox04fdIFOfptIDfYWDwTw/j6XI1M3opAaOkNtuaMjTAz/IV8knx8Qkt6IuoE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id C83E0286A53; Tue, 23 Apr 2024 15:38:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1713879519; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=q+2pScXRNgsPDrUoHlAhWQpt3X9oTYocKFjpWLYu4XQ=; b=g1BQ5YcTDeruHYXpFO2+XARfZ8MWF0gm5s0VwAdei3pAaMuFs9niG/PKOkNwl12zq4RAS9 gXTLb2umnoTxu/KaoW8OpcTfZEHMm7PPfdJ8TpsZWfWHpdfVAa0UeaNjNg3vgh6iwtvrEe /KDUkiyhcN4vwR/BhmBK620PrCYMMZk= Date: Tue, 23 Apr 2024 15:38:39 +0200 From: Jan Hubicka To: gcc-patches@gcc.gnu.org Subject: Fix documentation of -ftree-loop-distibutive-patterns Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, JMQ_SPF_NEUTRAL, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Hi, we have: -ftree-loop-distribute-patterns Perform loop distribution of patterns that can be code generated with calls to a library. This flag is enabled by default at -O2 and higher, and by -fprofile-use and -fauto-profile. This pass distributes the initialization loops and generates a call to memset zero. For example, the loop ... and the initialization loop is transformed into a call to memset zero. This flag is enabled by default at -O3. It is also enabled by -fprofile-use and -fauto-profile. Which mentions optimizatoin flags twice and the repeated mention is out of date, since we enable this option at -O2 as well. Regtested x86_64-linux, plan to commit it shortly as obvious. gcc/ChangeLog: * doc/invoke.texi (-ftree-loop-distribute-patterns): Remove duplicated sentence about optimization flags implying this. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 2a35dc7ac75..27c31ab0c86 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -13852,8 +13852,6 @@ DO I = 1, N ENDDO @end smallexample and the initialization loop is transformed into a call to memset zero. -This flag is enabled by default at @option{-O3}. -It is also enabled by @option{-fprofile-use} and @option{-fauto-profile}. @opindex floop-interchange @item -floop-interchange