From patchwork Fri Oct 7 07:11:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 1804 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp161913wrs; Fri, 7 Oct 2022 00:12:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM66EOQResNmh2kwckb76uwuq20UN2BXFqr5DiG4VY6LrfkToje1y//Rm+d5UcOA0g2+6Yze X-Received: by 2002:a50:ff09:0:b0:456:fd61:83b3 with SMTP id a9-20020a50ff09000000b00456fd6183b3mr3180326edu.166.1665126721838; Fri, 07 Oct 2022 00:12:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665126721; cv=none; d=google.com; s=arc-20160816; b=GOKPRTJTVJWKontRH1446rF4ifoBM6KAmaqHiozJwpyEKPI1jZ5xbSv54Gi660gObd Hgbl+y0FtwTe4TkgxchrIVTgVxcyjOvY/dp5fiFpPshhNuHiVzSD1UZmOL+mBp3/ateJ ezLIqL8vLDQ3IOUKdEMCaw1aEDf0BzD3wjSwGdH3+ZIvdJauCMBExUD6CC6RmwBSHvbF 3/ODrPVUOgkUV7pUzU47zaOZdt926xZ33Pf8EF3x5/M71YKsO3hdExZ/a1Z1gHRihz6H TFi5qBuO8Q9R0rTJRSnYif52Am7fbwDHMn0PUo82YgmalZuFyvyRugCHIjLVIcejYa0J N+qA== 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 :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=h+MmOJRd3uf3DmcsLOl7ZYp4Uz97SXrsqyU1Tnt9IjI=; b=Vw/y6wRtXMGlABRO5Fj1ZKDq0MUbdQ7i8qNtuDBGlK1T41IfTF1IgUFEM714xz/sQ4 73ozegovdk1uVPagqTXEkDYGFnS5p2bB09mAkCtmkNfWOvptUGbjrhDlPR5RMWMmzIaD YHasfll5t0HYMAnE15JJL2aSzPhwujL1eEWBLW1b5zDbjS4PbBA6W28XjknyRoYOz2VW jnMl/476ySL6tgapqPvmj0ptJJdXC0K/9pxLzDoWRPczOA168fQGxw9AT+4XF8jn9BQf hcZXsnpcw2LSTEazvekeVXw+pzozRtff5ix+gQpsETg2DGueLhDpjNtd1cO0z7NR8vce uHYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=yAC+cdSf; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id fk1-20020a056402398100b0045a1e2373dbsi350540edb.44.2022.10.07.00.12.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Oct 2022 00:12:01 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=yAC+cdSf; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 9B9F538515FF for ; Fri, 7 Oct 2022 07:12:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B9F538515FF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665126720; bh=h+MmOJRd3uf3DmcsLOl7ZYp4Uz97SXrsqyU1Tnt9IjI=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=yAC+cdSfwh/2jnW93Kb/kftmE/Z6qGDnmz28vfLTIrWV11XP9xl69w69cjvOY6ka3 P0F8uAmf3iwSRU+M0e/ufRLk21aowM11I0YfXNos0gT/1o3gXgxEcNsmwhlqU8zpKy +/L/IF6vRDsySof+5L05+PidpVvo5GPXdoEU1F6A= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 796C43858CDA for ; Fri, 7 Oct 2022 07:11:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 796C43858CDA Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-487-FrpHQq_hO0u2fTg_CPQytA-1; Fri, 07 Oct 2022 03:11:16 -0400 X-MC-Unique: FrpHQq_hO0u2fTg_CPQytA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E200B3C0ED4E for ; Fri, 7 Oct 2022 07:11:15 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.194]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A119D200BC6D for ; Fri, 7 Oct 2022 07:11:15 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 2977BDji3645858 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Fri, 7 Oct 2022 09:11:13 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 2977BCtA3645857 for gcc-patches@gcc.gnu.org; Fri, 7 Oct 2022 09:11:12 +0200 Date: Fri, 7 Oct 2022 09:11:12 +0200 To: gcc-patches@gcc.gnu.org Subject: [committed] Fix comment typos Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jakub Jelinek via Gcc-patches From: Jakub Jelinek Reply-To: Jakub Jelinek 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?1746011917489068081?= X-GMAIL-MSGID: =?utf-8?q?1746011917489068081?= Hi! When looking at tree-inline.cc I've noticed a comment typo and grepped for similar typos elsewhere. Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk as obvious. 2022-10-07 Jakub Jelinek * ipa-prop.h (ipa_constant_data): Fix comment typo. * value-range.cc (irange::irange_contains_p): Likewise. * value-relation.cc (dom_oracle::set_one_relation): Likewise. * gimple-predicate-analysis.cc (predicate::simplify_4): Likewise. * tree-inline.cc (remap_ssa_name): Likewise. Jakub --- gcc/ipa-prop.h.jj 2022-05-25 11:07:29.516188277 +0200 +++ gcc/ipa-prop.h 2022-10-06 16:12:52.157055672 +0200 @@ -78,7 +78,7 @@ struct ipa_cst_ref_desc; /* Structure holding data required to describe a constant jump function. */ struct GTY(()) ipa_constant_data { - /* THe value of the constant. */ + /* The value of the constant. */ tree value; /* Pointer to the structure that describes the reference. */ struct ipa_cst_ref_desc GTY((skip)) *rdesc; --- gcc/value-range.cc.jj 2022-10-06 08:55:02.668291942 +0200 +++ gcc/value-range.cc 2022-10-06 16:12:17.161531334 +0200 @@ -2508,7 +2508,7 @@ irange::irange_contains_p (const irange // Otherwise, check if this's pair occurs before R's. if (wi::lt_p (wi::to_wide (u), wi::to_wide (rl), sign)) { - // THere's still at leats one pair of R left. + // There's still at leats one pair of R left. if (++i >= num_pairs ()) return false; l = m_base[i * 2]; --- gcc/value-relation.cc.jj 2022-09-30 14:12:44.654058401 +0200 +++ gcc/value-relation.cc 2022-10-06 16:12:34.527295298 +0200 @@ -955,7 +955,7 @@ dom_oracle::set_one_relation (basic_bloc ptr->dump (dump_file); } // Check into whether we can simply replace the relation rather than - // intersecting it. THis may help with some optimistic iterative + // intersecting it. This may help with some optimistic iterative // updating algorithms. bool new_rel = ptr->intersect (vr); if (dump_file && (dump_flags & TDF_DETAILS)) --- gcc/gimple-predicate-analysis.cc.jj 2022-09-09 12:27:28.259668112 +0200 +++ gcc/gimple-predicate-analysis.cc 2022-10-06 16:11:36.676081607 +0200 @@ -1369,7 +1369,7 @@ predicate::simplify_3 () /* Implement rule 4 for the OR predicate PREDS: 2) ((x AND y) != 0) OR (x != 0 AND y != 0) is equivalent to - (x != 0 ANd y != 0). */ + (x != 0 AND y != 0). */ bool predicate::simplify_4 () --- gcc/tree-inline.cc.jj 2022-05-30 14:07:02.191304381 +0200 +++ gcc/tree-inline.cc 2022-10-06 16:11:57.455799164 +0200 @@ -171,7 +171,7 @@ remap_ssa_name (tree name, copy_body_dat n = id->decl_map->get (name); if (n) { - /* WHen we perform edge redirection as part of CFG copy, IPA-SRA can + /* When we perform edge redirection as part of CFG copy, IPA-SRA can remove an unused LHS from a call statement. Such LHS can however still appear in debug statements, but their value is lost in this function and we do not want to map them. */