From patchwork Fri Aug 25 01:59:19 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: 136888 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a7d1:0:b0:3f2:4152:657d with SMTP id p17csp1513759vqm; Thu, 24 Aug 2023 19:00:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpSmLIqzCZenzhl5/bE+TK4NaWUSsS/TTTSoG31hu3GLtiJwm+CCtK8oJX32lbNlrA8XGi X-Received: by 2002:a5d:5267:0:b0:319:7b6f:4a5d with SMTP id l7-20020a5d5267000000b003197b6f4a5dmr12143307wrc.52.1692928813224; Thu, 24 Aug 2023 19:00:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692928813; cv=none; d=google.com; s=arc-20160816; b=vDaBoRZH2LaO41miobk3fOtCwhkLbiHp7GmYuD2r50hYfRt4BtXshLma1GoLqlUDWe 5lzqp6sStzYUR0IKdTi3mss8iID5qty6h9G0wdICxenh0lhO56CRYhgCT5BinmQ2R/pd dkrQkrf4dwOV2w15ZGUaWXWtnamX8cMfcrQvRpH3HurcrDyXmeVYqllUEcXHtFwK/ud6 P9O5NEl1MqAs2hFc3Ou50JA0t0bdEkRJHJxn8bvoD2mjgVKoRJyNDM2FqBtJuIqTi+HR U+sROfODxjLGR4N/B8b+ARfLbGoBdS74E6Ol/V6Ar4KnNbMzV2mWTv9ZPfXfzAViy3eP Hp3Q== 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=dRCSWSKzEfUHBccblO1Ogu00H1/YoX2MOgR2rPTsIZ0=; fh=AsXAgOocg4rFW6UGop59Guj97gFgs/PK0j9KDGY8ZRE=; b=hvkWnj6vapxCpWV97AdnJJYi0VJKQuSJPkdDMdslFgLFBWzjBBUqbOdfIy7dFcPchP AoaOw55HJXq3G/uhGq34Vutcff9VFNqygFCh+BvKtZ0yZkJcFVUZfSkTQJoqavGMPoIu yrXaI9CTnasBwJW96H5inksFmbRe+p4OcLQ887SB27PTxoDhbBeFDVyrfq0YcmvSF34S XayN2IFeCjl3WxfiSkAjy9R0ZGralFpg3Ey4PE2UCwFQZT77ds6LMSlA9iX9q2yeXUML G7qVwoOQ6/L3SGtjtV9mCfcBnee/wifNiFlF4v9kea3ERluDXsK7tG1cp+AJcVfaHqYN yzLw== 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 f16-20020aa7d850000000b005232901160dsi464138eds.485.2023.08.24.19.00.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 19:00:13 -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 E6B61385AC09 for ; Fri, 25 Aug 2023 02:00:08 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgau2.qq.com (smtpbgau2.qq.com [54.206.34.216]) by sourceware.org (Postfix) with ESMTPS id B7F503858C53 for ; Fri, 25 Aug 2023 01:59:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B7F503858C53 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: bizesmtp67t1692928762tbso7qug Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 25 Aug 2023 09:59:21 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: ldOlv20DOSl9K8YmNjV3474di8V1AjEIReqVxyhDBDjveMKpecD+AaS66fTmv 0prFpGi+PxiHYo357u+fldhhtfP2cSQhD6x0A2rGl2ARyMomROeG4cA0dGH7hiAxtpEe931 o6pd7LzuH/MoNJaDhXOSq0yBipZ5DKhluCq2ePv0hwq0tGRQoIKH4x/LZDmXamHjwQfrzr9 olakBEmgkcEQWiOu/xMBdPtHkKCmyp5SPmPLtCkbcZMzeFX75nz8XpFzHviDQEn14w8hSpO lBZ+2yIsvpQd2J9W72VhqR3Vssh/oPA/H6rxv0UeYRVWBLSTCP9wKR8FuMu/pBr7o7cpv5B hRCl7EmaI2LWbXsRD2mALBeYtX4j0/mDrK8XAjKAuhB6I0oOtOyESKSooTOzw== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 14737300182821813352 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, kito.cheng@sifive.com, Juzhe-Zhong Subject: [PATCH] RISC-V: Add early continue for ENTRY and EXIT block Date: Fri, 25 Aug 2023 09:59:19 +0800 Message-Id: <20230825015919.3478297-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:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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.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: INBOX X-GMAIL-THRID: 1775164523563436326 X-GMAIL-MSGID: 1775164523563436326 Committed. gcc/ChangeLog: * config/riscv/riscv-vsetvl.cc (pass_vsetvl::compute_local_properties): Add early continue. --- gcc/config/riscv/riscv-vsetvl.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/riscv/riscv-vsetvl.cc b/gcc/config/riscv/riscv-vsetvl.cc index f7558cad2e2..7923702144c 100644 --- a/gcc/config/riscv/riscv-vsetvl.cc +++ b/gcc/config/riscv/riscv-vsetvl.cc @@ -3720,6 +3720,8 @@ pass_vsetvl::compute_local_properties (void) for (const bb_info *bb : crtl->ssa->bbs ()) { unsigned int curr_bb_idx = bb->index (); + if (curr_bb_idx == ENTRY_BLOCK || curr_bb_idx == EXIT_BLOCK) + continue; const auto local_dem = m_vector_manager->vector_block_infos[curr_bb_idx].local_dem; const auto reaching_out