From patchwork Thu Sep 14 07:54:37 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: 139416 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp181530vqi; Thu, 14 Sep 2023 00:55:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeiRjtEPbWkGhj29T1JJYmS58HbR0YYnSqZ2znQhv+r8FML8A+nJIGNpDwWz74fdbp0xQ+ X-Received: by 2002:a05:6512:70f:b0:500:90d1:90a6 with SMTP id b15-20020a056512070f00b0050090d190a6mr3368430lfs.63.1694678129393; Thu, 14 Sep 2023 00:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694678129; cv=none; d=google.com; s=arc-20160816; b=N2Q6xRLF/QtVQCKHtNls8goAPoQBo8qDXkVYv1Z2ZZ7clJBWaoycezzwGfUJkrrdUq e5tOAEdrcReyQX4H/2Q1jcndDpw7iSs+GZ3VC+BCW6ZnWIvldJtOh5aab30Xd0EfHvLr QM6IyugnYSeEb0RdWqb0AsxiOLPt3SP+JbkCr7qdNwQDaM5yOp+iqNOvABIiEJFeq70N 0xxWNwujCtAGsr+5cGNN00EkXC1Yd5TieKVJpREuzgUYIUTNd3CnNVmDFXlAxpG8CP43 9s6u3j/VwbCCCLTekZpKJmOKk13u25b8ftzyX6DhSB597nGyCvvi4VvcX0xvxQcqjAmI VxEw== 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=WOloeh2qser6pDVwRtld4Mp59cvZTurpeXRGlUISAoY=; fh=idvV5TQ1gmHAoU8u1GUGfjilVySOK+BR5TeZLoSouN8=; b=mBepej424J3rHGYTbKNS+rFNBNUS6JltR+4kJldv5V8BE/3xSDdM/RsiriwZ878Mvk vOUORqCrT7hZVpaScnyHcXLdBN8yufY79bINM5+WQR1TZgkGnn7MeJv1vQxjL8ZOBOcL smNa9p6U9Wg+bMWyHsc/itevwtTM0oaJUZ9cF7co8X0sMPyeoKZHRh1YvKbIeHssls4U OkDkpWGrYxCFTxDX//1ENomzQ0qF6cBjx1ZWI556fspZWbuhXRrxFfaODihmaczRvf8O LKlsj4A2CbuGBfc1srqtagOBZ/dCM3aLZfP7aVpjnkGSCtxe4AyvlrTJYIVIG3G1/FWG pMmg== ARC-Authentication-Results: i=1; mx.google.com; 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" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id n27-20020a056402515b00b0052fb36a7352si792331edd.575.2023.09.14.00.55.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 00:55:29 -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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9CC7E385624F for ; Thu, 14 Sep 2023 07:55:17 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgau1.qq.com (smtpbgau1.qq.com [54.206.16.166]) by sourceware.org (Postfix) with ESMTPS id 05C0B3858CDA for ; Thu, 14 Sep 2023 07:54:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 05C0B3858CDA 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: bizesmtp88t1694678079t7bp12gv Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 14 Sep 2023 15:54:38 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: QityeSR92A0wyrMu1Be9zWWVdgped4+OF66FpQeYYPYJQNTbwycFZQ1+X/On5 yJV4hcHgVdxo3HFHBSbeRs5bNHSCChkVgdm5T0IZk45p8DCt8pBLc/kO0piM8qszlyEIljw W1/byNx+g8tpVQd3WnYIyridN4saIEPYdDWhoyJvU93NqeSkClugPsh7EBFfxipxRARTmnN 0G938nHqKxbc0NlIc+q2k2ECrvponFyFaD4/jeLQvE1iM7lkHDJGuTzxuanL84nDwzX4iTr qybLDR7TUh6U6jmPgTLLwgvEFJMK9EVlFdZxdP7Ji84GwijT1O9ZYpnzgQc6GluVSW5opy9 bMuYv2itwcDeJYyWH+PYoJeJYXkIxJXpUqFtm6aQnQ8NFmr4wBssuDrwpg4E8wswdZphNwF X-QQ-GoodBg: 2 X-BIZMAIL-ID: 1569344483184238343 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: Juzhe-Zhong Subject: [Committed] RISC-V: Format VSETVL PASS code Date: Thu, 14 Sep 2023 15:54:37 +0800 Message-Id: <20230914075437.3222179-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.1 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.30 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: 1776998814212380344 X-GMAIL-MSGID: 1776998814212380344 gcc/ChangeLog: * config/riscv/riscv-vsetvl.cc (pass_vsetvl::global_eliminate_vsetvl_insn): Format it. --- gcc/config/riscv/riscv-vsetvl.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/config/riscv/riscv-vsetvl.cc b/gcc/config/riscv/riscv-vsetvl.cc index 8ec54092a48..dc02246756d 100644 --- a/gcc/config/riscv/riscv-vsetvl.cc +++ b/gcc/config/riscv/riscv-vsetvl.cc @@ -4060,7 +4060,8 @@ pass_vsetvl::global_eliminate_vsetvl_insn (const bb_info *bb) const } /* Step1: Reshape the VL/VTYPE status to make sure everything compatible. */ - auto_vec pred_cfg_bbs = get_dominated_by (CDI_POST_DOMINATORS, cfg_bb); + auto_vec pred_cfg_bbs + = get_dominated_by (CDI_POST_DOMINATORS, cfg_bb); FOR_EACH_EDGE (e, ei, cfg_bb->preds) { sbitmap avout = m_vector_manager->vector_avout[e->src->index];