From patchwork Tue Dec 20 14:51:16 2022 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: 35109 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp3006219wrn; Tue, 20 Dec 2022 06:51:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXtHlFfwjNS7LWsEAejnisWxTt+6dQCUFhaXPcrxX4j5AIlZ6rUJBZNJMMN9zKXpw5/RhdTh X-Received: by 2002:a17:906:9be5:b0:829:5e3f:3c92 with SMTP id de37-20020a1709069be500b008295e3f3c92mr8004171ejc.73.1671547915620; Tue, 20 Dec 2022 06:51:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671547915; cv=none; d=google.com; s=arc-20160816; b=fxMNpWhxHdniQxChc4PFsoA46TP8Ncb3Mzto8uueyEsrpI0+VtgfdBOTz9Na0IlqA6 Ei59m7D7MavCvAetQit6eviIkqaL+wS+Ms3m5RYUpqZAoiJ0LEUKxsvG3J5yBzdBMPhS DivI57yY5iZOEGcPqEPVdUeSKtEtuWVNpeUJT+7y71pSAfhGv5HFocqz2eznIvk/yI8w ppCp3A3Emwt6dV9REym5rS8Ei6dGT/4GYT8ctE6t7MZEojQeynNdUaViUyFYNjhqRsCs NFrdrOx2zAH4XnQpqRwBYOuTIeSlDZR/Xj2rRyBH98MzCnqYQlipB7Casuz5Ie1+aFmB GNHg== 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=6rqs2XEkNz6Ln2cnx3Xm05nYkGR5VQRgYc8be/mo2sI=; b=d9+MJ+ng6yJatzXGoDpY/OBOmXwabFsJr7JMlMiMlnd4aVhvysIxv9ifzkmXgKDxvW 8kPmHnoKvotwbal7lR0odo7tFLl6qaEumE/U858ER7Bm1Ghd5JqeSsyjc0NPbHyNycc1 kX3HvXGJcflUrHJV9nf/TTo9yJ19+IkysxpAyAYuh20CduVzutVkyb7UvyRQDuChlcN3 BW3TGZnZ16v4eJ1l18QiugWtPnbhJnYgGFsfiAOTm3ZDQTcQPp0Vmfo8lADnz9HN7wLe jQcfe9c4Y84HSZGMW6ftEc95XERofTfUceBGnqTyniCez/vKrWSBA/PG6F1k88DHvnCb xVRQ== 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 sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ga24-20020a170906b85800b007adffbaa908si9600858ejb.916.2022.12.20.06.51.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 06:51:55 -0800 (PST) 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 6928A385B522 for ; Tue, 20 Dec 2022 14:51:51 +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 5D2AA3858421 for ; Tue, 20 Dec 2022 14:51:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5D2AA3858421 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: bizesmtp81t1671547878tbqniz04 Received: from rios-cad5.localdomain ( [58.60.1.11]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 20 Dec 2022 22:51:17 +0800 (CST) X-QQ-SSF: 01400000002000E0L000B00A0000000 X-QQ-FEAT: Iaa+OtKlwOMibzIAT5xkJSGduUeCwfn/MgTbRcWlSBjXdmAsV4HQ3gcwbsild 4DbS90IzQIpLZtsjEfhtfzFiLx83s0MRK/nAuG1PSi9VtYyyN0ZUPKw0thD4tdJZb9fC900 LcKpiOszoYLrvhUiSCgcSh/Lzf0Z0MaE4lizlDbuXoqJG+ttcVW5X5/Huzl6HrJEUfYzZl2 ZtpMsz5KTtj/xDpv0RFwEteuZM1ltZvWHISQShBReVmvqkPJOZ6RWG3su18AmhlqCW2jlLg QndaMTwIIx/+ArCPKiJyKSUSTx6ixN9+QoN6oLtFpqrpHTl3uU7K29uDJJy5a+CaheDvGr4 bdLPcRE3pUyEosXuU/4BOmjOgeaTH5obOVJROyD7ww+WzWwXoNpb2Oflpky8Ln/YKB2PWCV 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: Remove side effects of vsetvl/vsetvlmax intriniscs in properties Date: Tue, 20 Dec 2022 22:51:16 +0800 Message-Id: <20221220145116.223955-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.6 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752745026809126460?= X-GMAIL-MSGID: =?utf-8?q?1752745026809126460?= From: Ju-Zhe Zhong gcc/ChangeLog: * config/riscv/riscv-vector-builtins-bases.cc: Remove side effects. --- gcc/config/riscv/riscv-vector-builtins-bases.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gcc/config/riscv/riscv-vector-builtins-bases.cc b/gcc/config/riscv/riscv-vector-builtins-bases.cc index ffeb1b25fbc..75879dea25a 100644 --- a/gcc/config/riscv/riscv-vector-builtins-bases.cc +++ b/gcc/config/riscv/riscv-vector-builtins-bases.cc @@ -53,11 +53,6 @@ template class vsetvl : public function_base { public: - unsigned int call_properties (const function_instance &) const - { - return CP_READ_CSR | CP_WRITE_CSR; - } - rtx expand (function_expander &e) const override { if (VLMAX_P)