From patchwork Thu Nov 2 09:02:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 160812 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp215004vqu; Thu, 2 Nov 2023 02:03:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQFALQ3vnIoo7Bq6DRfW2WcooBkt0l9OidXvNsBknoYcPnHomPowNgABfgHBkp9I1VAWc+ X-Received: by 2002:a05:620a:84c8:b0:773:e380:b364 with SMTP id pq8-20020a05620a84c800b00773e380b364mr18940196qkn.69.1698915791929; Thu, 02 Nov 2023 02:03:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698915791; cv=pass; d=google.com; s=arc-20160816; b=mxAWKXyyz0NmgA+KlBx6Vq3MHieDb7rXYOHMX4D3cQBx/IIcCQVniR1rZjzZ5htDbU 2K/3zQt3yKo1KAA66o1n/cTs8jpbS3RrGl/cM1gChvu/PM7+K5ptPCQo8oxf6ApcR9jp 62vh/tX1MfsE/M4DVlimh9iVkFXfj5JP2NylAm+6LZu5HhDLqHQ5O1aUpDftTHuEilce 7h4A9fMWjVFVCd2A40NVDQS3svd4Cw2B3MzbndScW4fDkG05z/kvteHD0uulfX0TGj5r JzHsIF7LQd0Xo+E0Zkqz1g8wARYH1JqAAc/nx6xuyR4QOGLqVnp7G8LJIJSwX+uEBMyD vfZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:arc-filter :dmarc-filter:delivered-to; bh=buDJYleslUA4YYUo5G6RdLZikFtQZpERZTsCN4Kvy3c=; fh=lhAG8ssliBigPOPTNpUmgPeKTFWUg1eGxz7YimpjSKA=; b=uUyXU6JE3S0vKzZyg8s8ngNOny76OVWyMxN2zWhDpVYWWAefSNGkAKfIzN5G9b+u2/ pUy+byRoYaCjJDi0VtC87nJrvot47jCvFtQBVqa9DSyCtqTP6muBCsLNzqyH0q6jJDbY Mvqm7LTpJlJlzhzBflcM/dZC3S6s0lfxJGbeyB6TO7WV/7yG9+fo5MaZVHEjSZGd4wHA EnUYD6ODj7Y3qhV2ck0AzywBWR7BSY/ITzeB/4C6JICk4kuk7Fz7rn3oEJZcJTvGmfVV umZp9k1U1GcxP+BWI4Hyinplh15LQ/tE15EdoqOyPcTraWhtw+CLiuWrxdsxKUVe917r w6zA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id y16-20020a05620a25d000b007749dc7ce32si4231503qko.123.2023.11.02.02.03.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 02:03:11 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B05B53858C2A for ; Thu, 2 Nov 2023 09:03:11 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 4031A3858D28 for ; Thu, 2 Nov 2023 09:02:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4031A3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4031A3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698915769; cv=none; b=FkbMnsjwlm4eFsPF5hUNSOp4fs6ffx5z07JATSGqCwE0qT1YH288apT2wOUZenP4i7iCprdawWP5nd1qGlVWoeSjxHekjXjHRYmkOCt7B7moHa7S5IqaeGCxX9JYOkZ3VpogKVXp5zL5vy+bJPoRmM00xoslW36ofF1kxcgJtDw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698915769; c=relaxed/simple; bh=UApb3c9nBRcnTmYqERf/V9jVv/9/0JZn5qPsw2xWI3k=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=wpeL11YlHAWx3zMz2D73XWQNb2bBEUVQM3WKEfSIzYcLVCGQE6Soxqpjd90voYJifF9mtl7nvzUQ2jwtnlq4FbEip6/T+9bREPL4/keZYW6F5kv5d0ZKKZ8R2Of9qSNF3ks5AfP0B1m1ErAF1Gw62l/gHcXWjz+IF7v0bJYLzts= ARC-Authentication-Results: i=1; server2.sourceware.org From: Sam James To: gcc-patches@gcc.gnu.org Cc: Sam James Subject: [PATCH] doc: explicitly say 'lifetime' for DCE Date: Thu, 2 Nov 2023 09:02:30 +0000 Message-ID: <20231102090234.1145382-1-sam@gentoo.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781442325438995123 X-GMAIL-MSGID: 1781442325438995123 Say 'memory lifetime' rather than 'memory life' as lifetime is the more standard term nowadays (indeed we have e.g. -fno-lifetime-dse). It's also easier to grep for if someone is looking for the documentation on where we do that. gcc/ChangeLog: * doc/passes.texi (Dead code elimination): Explicitly say 'lifetime' as this has become the standard term for what we're doing here. Signed-off-by: Sam James --- gcc/doc/passes.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/doc/passes.texi b/gcc/doc/passes.texi index eb2bb6062834..470ac498a132 100644 --- a/gcc/doc/passes.texi +++ b/gcc/doc/passes.texi @@ -543,7 +543,7 @@ and is defined by @code{pass_early_warn_uninitialized} and @item Dead code elimination This pass scans the function for statements without side effects whose -result is unused. It does not do memory life analysis, so any value +result is unused. It does not do memory lifetime analysis, so any value that is stored in memory is considered used. The pass is run multiple times throughout the optimization process. It is located in @file{tree-ssa-dce.cc} and is described by @code{pass_dce}.