From patchwork Wed Apr 19 15:54:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 85487 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp490681vqo; Wed, 19 Apr 2023 08:55:36 -0700 (PDT) X-Google-Smtp-Source: AKy350bG1XifFYIA047GNzjS3Ww2/NVKF9LGuuX/6lQ6mpCZBAqFzOGKke1/+89oLjLFraXzd/sC X-Received: by 2002:aa7:d41a:0:b0:505:abcd:d2cc with SMTP id z26-20020aa7d41a000000b00505abcdd2ccmr6463393edq.30.1681919735850; Wed, 19 Apr 2023 08:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681919735; cv=none; d=google.com; s=arc-20160816; b=cq1iLHcna1tCTKAu0WcrK9InW6e7m6/d3x3u7nzbw/crSrpe8INaFWhCuPFqRYzUZd SKHkt0onjBvYvWVoz4wPsGafEpyJRcQ5tk615oY/lqBUHo4t436lbnX1J2VrQNvjx+Df psuTv8JFjoTq6j4wGtTlqCnBEo7y1xyG+AEyt/In6do9Y0/62x4SR1Nc5100DxW3I/lc n1iOZ/1WR+LDmLRB6kj2E5XPFqxIV9OS2ff6/pkQzZHo7kpY60m0FZ86TW9GfNhyw8Qp VE2WPd39SkkiRf3KwhMJsG/oOGnTEmRdPSV6t4VvI6Y3e3yKFgUhUJRCmdUiIdMh0FoE NyFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:date:message-id :content-transfer-encoding:mime-version:subject:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=EFJsw+9D0WKRowINqh9TFXNu8Ze7zcDtXvnxltCP/Vs=; b=QnfiIR2O55X0dLHp9eDb2F/bGtgKM48l6+KoTB4wCtWj5yLe/rMpaKGZsufqRWSIoO rwcVJjfkhv/nWTAA569XizM/O0XFFPdQbXHVTsNxVQxvYeJJvUX6rBOEl3KmJwt+ISSe fZpFtWCl1iVjcQeshoRkUkLTqboDKjyXnP+NtGxpEnQlStP23otvujfb27xHLfWfV8+B B5QhaALz/wDQbxglABou/DJ8mTyCa37l1gwWN4YelSyw38OqP6AA41z3qNxvFGYfn71g iSrcf99DIRyZlaoqQEQr45WTuoXgGWc34VBM7fPrXXgGsq79D2BLjMhMh49PdcV/HavP C9lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="L3O/gzOG"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d1-20020aa7ce01000000b00506a5db0081si142843edv.86.2023.04.19.08.55.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Apr 2023 08:55:35 -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; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="L3O/gzOG"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BB1E03858430 for ; Wed, 19 Apr 2023 15:55:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BB1E03858430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681919734; bh=EFJsw+9D0WKRowINqh9TFXNu8Ze7zcDtXvnxltCP/Vs=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=L3O/gzOGGvyVHGYIpaf7Kue5ZhWNzpjh60i3y67fcFvia3Oa/rgqNdOyuc6v74CxQ u1M72LWPha/9EX5eCqOd2zIB1dNd+Vax5xHUMNjZsSrR/5y+ND+9X2FFFlMbDgwIc7 UkPduySGwGtaFiQ6vF2OQKPlQ8ghkJCnSv54jwh4= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by sourceware.org (Postfix) with ESMTPS id 46B563858D33 for ; Wed, 19 Apr 2023 15:54:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 46B563858D33 To: Subject: [PATCH] recog.cc: Correct comments referring to parameter match_len MIME-Version: 1.0 Message-ID: <20230419155448.EAC3420438@pchp3.se.axis.com> Date: Wed, 19 Apr 2023 17:54:48 +0200 X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Hans-Peter Nilsson via Gcc-patches From: Hans-Peter Nilsson Reply-To: Hans-Peter Nilsson Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763620669176151120?= X-GMAIL-MSGID: =?utf-8?q?1763620669176151120?= I'll commit this as obvious, so it doesn't trick anyone else anymore. -- >8 -- * recog.cc (peep2_attempt, peep2_update_life): Correct head-comment description of parameter match_len. --- gcc/recog.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/recog.cc b/gcc/recog.cc index 3ddeab59d924..fd09145d45e5 100644 --- a/gcc/recog.cc +++ b/gcc/recog.cc @@ -3850,7 +3850,7 @@ copy_frame_info_to_split_insn (rtx_insn *old_insn, rtx_insn *new_insn) maybe_copy_prologue_epilogue_insn (old_insn, new_insn); } -/* While scanning basic block BB, we found a match of length MATCH_LEN, +/* While scanning basic block BB, we found a match of length MATCH_LEN + 1, starting at INSN. Perform the replacement, removing the old insns and replacing them with ATTEMPT. Returns the last insn emitted, or NULL if the replacement is rejected. */ @@ -4036,7 +4036,7 @@ peep2_attempt (basic_block bb, rtx_insn *insn, int match_len, rtx_insn *attempt) /* After performing a replacement in basic block BB, fix up the life information in our buffer. LAST is the last of the insns that we emitted as a replacement. PREV is the insn before the start of - the replacement. MATCH_LEN is the number of instructions that were + the replacement. MATCH_LEN + 1 is the number of instructions that were matched, and which now need to be replaced in the buffer. */ static void