From patchwork Wed Jan 18 02:58:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "juzhe.zhong@rivai.ai" X-Patchwork-Id: 44939 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2109768wrn; Tue, 17 Jan 2023 18:59:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXt+5YMmZR/w3SkTwsCLCAcNchrAoLdjsfltDzfy6G6xztTHpKBSFFdHO4HrjDzktpbsL4RA X-Received: by 2002:a17:906:9e90:b0:7f7:a985:1849 with SMTP id fx16-20020a1709069e9000b007f7a9851849mr1159977ejc.24.1674010752315; Tue, 17 Jan 2023 18:59:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674010752; cv=none; d=google.com; s=arc-20160816; b=idUkCF/JU4a0fJnfQDlYiHlW+sVSjYltwOBLFjIRCQwpD6D1+Z25NVmRr8OO7swvy4 /PT8wwfr8r0o5LNptXzmbEipnzbThEu8TFqNR3E2hjFJqOxKFt3yG32vPksVgjNVHlJ1 8UFsR56U66UN5YAz9l2uHr1qoEqMX3MfM5tsaKQG+aRdneUOiutkZylhCzodJecrcBKI b3/pU3hUJmgkQF/H+rVbDfpskef27iiD4WEweFo+ogiTLuh2dv29VcZmAbo4gTbwrYzV ww3Ndqao20Ka/kmQ40wbjyeQfwj7OQAOLGZtANz/2Zqls04YWGkgHT844WmEeGFk5EHf L4kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender: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=CX/v5uUdDOPlUr8nFQAgf375B0cOkl9il0LFKbDQ/8w=; b=ZnIbu/+jTSOuRLl/d5BFSNviInsX1u/kLhcy5FEYGeovuw+27XlJP4can23SYWZmHB +FPt0j/FfaXtwVNqkNqmK4bVO8pQ+e/kDbve2RHZET1F7swSNyYuxghFjghuLfz9J5K7 eJsmEZ/u1Gb1WRc8bQF77kBoqWwLVyk6IScJD7n8RzwtuJbZ0Ldd4uj7U7sY3I1yE7Ik PSVNT2C6YpUnbofGnWKmDw5K9hdkXalHy8hCab1y+za1xNnKuKVTjSoOy6LCZk1Ouakf RGuVT6RrcIrGTQaAfTiXz+Z26Pj7CtHFD5awqR1mRsnnydhmokw6Li2Mhl3eCKyHues6 sgUA== 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 sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id wu1-20020a170906eec100b007a1d4f0e7fcsi35277147ejb.655.2023.01.17.18.59.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 18:59:12 -0800 (PST) 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 65DE43858439 for ; Wed, 18 Jan 2023 02:59:08 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgeu2.qq.com (smtpbgeu2.qq.com [18.194.254.142]) by sourceware.org (Postfix) with ESMTPS id 61ED63858D28 for ; Wed, 18 Jan 2023 02:58:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 61ED63858D28 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: bizesmtp68t1674010715tin6fnd0 Received: from rios-cad5.localdomain ( [58.60.1.11]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 18 Jan 2023 10:58:34 +0800 (CST) X-QQ-SSF: 01400000000000E0L000000A0000000 X-QQ-FEAT: UGyPqWPk7AqDDpYLS+RIY08lLYgNm8Q3AskX3JgxZks/L10qCSVSH9hxbx1IB 5zqAwbVXaEHi2fYZZyI4phOwlimgHlUNvF39zBqi326FoLJQGLh35wVfd1DCbNqm0r/iyO1 WRVBxH9d5auMaiXO87KmvuFoaDDyV/4Yyco0pfHRatWKpymSrn8RIKka1dop0/iZ1Nb8xeM v8WX3hxFcCHwzSPxLL6hzvehKZjU4wTkSRvZIypFh2RHRNM6kLQLWFDkxckasD6R76jKc6s Sn/9FaC3wO1Je8u35m4UCUkSK/VlPnKjwsPB0Z+GMkuh4+nHHBtvpScaVaDs5zedjkzLRJz wODR+XAUZg3mTexQy2Q8fXPvFtobiI71YSL3+Ionzj5oiPLXQqgdobo3gMFn0SABDcxHSOg X-QQ-GoodBg: 2 From: juzhe.zhong@rivai.ai To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, palmer@dabbelt.com, Ju-Zhe Zhong Subject: [PATCH] RISC-V: Clang-format some annotations[NFC] Date: Wed, 18 Jan 2023 10:58:32 +0800 Message-Id: <20230118025832.66827-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvr:qybglogicsvr7 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS, TXREP, T_SPF_HELO_TEMPERROR 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: , 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?1755327498356622277?= X-GMAIL-MSGID: =?utf-8?q?1755327498356622277?= From: Ju-Zhe Zhong gcc/ChangeLog: * config/riscv/riscv-vsetvl.cc: Clang-format. --- gcc/config/riscv/riscv-vsetvl.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/config/riscv/riscv-vsetvl.cc b/gcc/config/riscv/riscv-vsetvl.cc index c2a8b44584d..26d096ea939 100644 --- a/gcc/config/riscv/riscv-vsetvl.cc +++ b/gcc/config/riscv/riscv-vsetvl.cc @@ -33,7 +33,8 @@ along with GCC; see the file COPYING3. If not see Assumption: - - Each avl operand is either an immediate (must be in range 0 ~ 31) or reg. + - Each avl operand is either an immediate (must be in range 0 ~ 31) or + reg. This pass consists of 5 phases: @@ -43,7 +44,8 @@ along with GCC; see the file COPYING3. If not see - Phase 2 - Emit vsetvl instructions within each basic block according to demand, compute and save ANTLOC && AVLOC of each block. - - Phase 3 - Backward && forward demanded info propagation and fusion across blocks. + - Phase 3 - Backward && forward demanded info propagation and fusion + across blocks. - Phase 4 - Lazy code motion including: compute local properties, pre_edge_lcm and vsetvl insertion && delete edges for LCM results.