Message ID | 20230927065121.4044230-1-juzhe.zhong@rivai.ai |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2433997vqu; Tue, 26 Sep 2023 23:52:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF82GiOl2qMv+7c2gC7JDr0/27cxajUpc2E1+2wsmd7LabcCjGY3igkXJQsqRNYe1KRkWcE X-Received: by 2002:a17:906:8a7b:b0:9ae:6355:6435 with SMTP id hy27-20020a1709068a7b00b009ae63556435mr862320ejc.15.1695797525059; Tue, 26 Sep 2023 23:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695797525; cv=none; d=google.com; s=arc-20160816; b=TlIAjoaKkFO4rS6A0XSq/j0OcClvxGtFfqtkKhqQ87fux+07bspnPL3Xw88udOG2ze hx8bMtB9DL1lwZtRa0JxmNopXB1zm4pUDQFf07FtQo3GMQ/4MPpCBggVHYIryUoyiK/v 6xNudVRncodhXv+3sg4N5xDCUyhjhpkQk1135b2UBLOl+bfsUQG4cbZ+QWIl+YxKpOiG Ak7rvUiLfdIExoLwd30/lyf3dtvb7M08oxHu4AzVNN8haOxBetL7wHlvbkGdfhrWyhMb u3ROpxy7Oyu8OHFRbfwrYIGATLxd206fGG1xPkcHK8PcjdN99b4Q0/EsCoMPBE2e5NfJ YaxQ== ARC-Message-Signature: i=1; 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:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dmarc-filter:delivered-to; bh=cX9jW4B0IP3EYVWc0EVFeCy0TBXE+oXxkzpMOIsP/Fk=; fh=mlgczqbmeDnBuudaUD0OKNtrN3YEp3C0UptLjTcyUZ8=; b=PpzlIQuiakjXI6/UUygrImkqX0lOkq8gSeX6llbX3g4n0AFVJ4ADw/sQdZp+QGmf7d UAqw/dDcH/jYbL2WuSW+Ecf7IcWmBrQSLxpIqUH2S4RUWejGzq0MklN8Z3zefLtF7NLr K4NgIbuRhQgEpOacw7jtwqKDsCXhYO6XAG0zfgirVqIpw5V3nK+1NP0u9EGelScJSxFT 02AaZRXrgfMpaHAZuA43SnehP5WzP8K4zqKZymM7GxaGGodcIFA6tzVHH9/A2BtI7a+8 eGE/VxuJLSxhVRpSeL3RtokqsBFzdRGmswJ3SF1jT0vwYip831eX4JcmDEacm6+/DrjI KcCA== ARC-Authentication-Results: i=1; mx.google.com; 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" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id z15-20020a170906270f00b0099bd73cbd7dsi12518686ejc.429.2023.09.26.23.52.04 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 23:52:05 -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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D06D9385DC35 for <ouuuleilei@gmail.com>; Wed, 27 Sep 2023 06:51:58 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbguseast2.qq.com (smtpbguseast2.qq.com [54.204.34.130]) by sourceware.org (Postfix) with ESMTPS id D2D2F3858436 for <gcc-patches@gcc.gnu.org>; Wed, 27 Sep 2023 06:51:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D2D2F3858436 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai X-QQ-mid: bizesmtp89t1695797484txlbq973 Received: from rios-cad122.hadoop.rioslab.org ( [58.60.1.26]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 27 Sep 2023 14:51:23 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: znfcQSa1hKY8zwRuf7cNoEeSI6uKa/8TGSQ+Ep000ExMtBWdyCfBdqOVnYAPB D6IU40RvF4LyHowc1u2RU6/1xrgUjCSVlT6jTWIxTxAKl5mXhUQM5Z50ZF+Seu35J4dcm8H HKjmm9ja9s9Bhzynsp0wuM0bxr2t6rUMtuzgDVL3CsB/l3jiCybx4xDKhKbgC3VwFT1IDWt eqvHyV0G03ytqh/VobIIK2AHA1rdKhVmgS3t7NS4R6shNkce7fJY/NalJ1DWEh9CLJz6cHU VK9G3KpATFK1MUJooOIuzO1YfQKxognchmb4Erl2hz/XbiPbEE6WMa2VYri7hLrZBPMG5jO jlR90nUxJJM/ikgCtVHZyfWh7G/CtOOoHjezSeB46CZE0L0x3GoZHP+TkDmmiOL5DCY/kPk 9E65eQT3BFI= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 15120990554259847007 From: Juzhe-Zhong <juzhe.zhong@rivai.ai> To: gcc-patches@gcc.gnu.org Cc: richard.sandiford@arm.com, rguenther@suse.de, jeffreyalaw@gmail.com, Juzhe-Zhong <juzhe.zhong@rivai.ai> Subject: [PATCH] ifcvt: Fix comments Date: Wed, 27 Sep 2023 14:51:21 +0800 Message-Id: <20230927065121.4044230-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778172585749047382 X-GMAIL-MSGID: 1778172585749047382 |
Series |
ifcvt: Fix comments
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
juzhe.zhong@rivai.ai
Sept. 27, 2023, 6:51 a.m. UTC
Fix comments since original comment is confusing. gcc/ChangeLog: * tree-if-conv.cc (is_cond_scalar_reduction): Fix comments. --- gcc/tree-if-conv.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Comments
On Wed, 27 Sep 2023, Juzhe-Zhong wrote: > Fix comments since original comment is confusing. OK > gcc/ChangeLog: > > * tree-if-conv.cc (is_cond_scalar_reduction): Fix comments. > > --- > gcc/tree-if-conv.cc | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/gcc/tree-if-conv.cc b/gcc/tree-if-conv.cc > index 799f071965e..a8c915913ae 100644 > --- a/gcc/tree-if-conv.cc > +++ b/gcc/tree-if-conv.cc > @@ -1747,11 +1747,11 @@ is_cond_scalar_reduction (gimple *phi, gimple **reduc, tree arg_0, tree arg_1, > > and convert to > > - reduc_2 = PHI <0, reduc_3> > - tmp1 = (unsigned type)reduce_1; > + reduc_2 = PHI <0, reduc_1> > + tmp1 = (unsigned type)reduc_1; > ifcvt = cond_expr ? rhs2 : 0 > tmp2 = tmp1 +/- ifcvt; > - reduce_1 = (signed type)tmp2; */ > + reduc_1 = (signed type)tmp2; */ > > if (CONVERT_EXPR_CODE_P (reduction_op)) > { >
Committed, thanks Richard. Pan -----Original Message----- From: Richard Biener <rguenther@suse.de> Sent: Wednesday, September 27, 2023 3:18 PM To: Juzhe-Zhong <juzhe.zhong@rivai.ai> Cc: gcc-patches@gcc.gnu.org; richard.sandiford@arm.com; jeffreyalaw@gmail.com Subject: Re: [PATCH] ifcvt: Fix comments On Wed, 27 Sep 2023, Juzhe-Zhong wrote: > Fix comments since original comment is confusing. OK > gcc/ChangeLog: > > * tree-if-conv.cc (is_cond_scalar_reduction): Fix comments. > > --- > gcc/tree-if-conv.cc | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/gcc/tree-if-conv.cc b/gcc/tree-if-conv.cc > index 799f071965e..a8c915913ae 100644 > --- a/gcc/tree-if-conv.cc > +++ b/gcc/tree-if-conv.cc > @@ -1747,11 +1747,11 @@ is_cond_scalar_reduction (gimple *phi, gimple **reduc, tree arg_0, tree arg_1, > > and convert to > > - reduc_2 = PHI <0, reduc_3> > - tmp1 = (unsigned type)reduce_1; > + reduc_2 = PHI <0, reduc_1> > + tmp1 = (unsigned type)reduc_1; > ifcvt = cond_expr ? rhs2 : 0 > tmp2 = tmp1 +/- ifcvt; > - reduce_1 = (signed type)tmp2; */ > + reduc_1 = (signed type)tmp2; */ > > if (CONVERT_EXPR_CODE_P (reduction_op)) > { >
diff --git a/gcc/tree-if-conv.cc b/gcc/tree-if-conv.cc index 799f071965e..a8c915913ae 100644 --- a/gcc/tree-if-conv.cc +++ b/gcc/tree-if-conv.cc @@ -1747,11 +1747,11 @@ is_cond_scalar_reduction (gimple *phi, gimple **reduc, tree arg_0, tree arg_1, and convert to - reduc_2 = PHI <0, reduc_3> - tmp1 = (unsigned type)reduce_1; + reduc_2 = PHI <0, reduc_1> + tmp1 = (unsigned type)reduc_1; ifcvt = cond_expr ? rhs2 : 0 tmp2 = tmp1 +/- ifcvt; - reduce_1 = (signed type)tmp2; */ + reduc_1 = (signed type)tmp2; */ if (CONVERT_EXPR_CODE_P (reduction_op)) {