From patchwork Wed Dec 14 11:36:41 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: 33163 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp160130wrn; Wed, 14 Dec 2022 03:37:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf5v2czQyD0JIHEfd9omJ9XcQ96s+W0Xa4Hr5oZajOCYAUwgn29EwEXA0lunTpw4w/nZ6Vvs X-Received: by 2002:aa7:d54a:0:b0:461:b93c:47d2 with SMTP id u10-20020aa7d54a000000b00461b93c47d2mr27542489edr.27.1671017840130; Wed, 14 Dec 2022 03:37:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671017840; cv=none; d=google.com; s=arc-20160816; b=Jl90fIOfUlHiE6WcRJ7LeHyGTERwbJSAmuPtjz3a40PjDoQMwgik7zCvbJrGoYkUxB qNf+gpz0OeUOsQAMZ7gTYTOdrW2iwz2aK6LKgKMELm29WkGw6gERQ/89sWXIYx9f7P6C 5+sCHtI+BUi8AtMuPYzEzomkeLvgF5Ae1bLzuYfrhWKWdBbptZ+qkI+kcejnJOTkd0Kj oTTDYUkZWon3iJsr8NswnmMAi0xfJFshiHazgUU+jNbB+CuM0LP1TuwXOy8AqGWwIOuK hsEsWR/6EvSPYd/proxyJzXXcbORM1Z3kK5LXENkrySMpuxv8E1tGG0TMI5pb+ehiQth xcEw== 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=5/jAnHLdobFSWsA25wy8cpF+3MGnW04evbSmM3u2N8M=; b=x7PS3k5vvRB6zWbtvkH65hjzsWIW/bHfSuDBlfapd07RD/80moTJjQnIui2hnRafjM QvF+moMS9VVOTYRfwn9wYPjFb9dOeHoUa8AcbvD37L6kqtc21M49X7TjZBINoumQYUHu flPAXIGk3XbuTZd9ZVFD67Ni/f618CxwMlIcYBQwkT8Sj7z2u4QOXmc0MhsFhIYU0rkh OvveeV0kkmLEqkVkFWC7YmLqxBbqKcWDIOXM9YleOM0IWlHisiPs5a8/rTq0yHx0usZI yl9kqTj3cvKCCHwTBIeqjQGaiCuPn69OgFbuVlRB0nOYclD5lseSn+LEk5d+UL4SPVKB 57rg== 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 t9-20020a50ab49000000b0046b7d1b9d79si11667402edc.328.2022.12.14.03.37.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 03:37:20 -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 C412A382FC87 for ; Wed, 14 Dec 2022 11:37:16 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbguseast3.qq.com (smtpbguseast3.qq.com [54.243.244.52]) by sourceware.org (Postfix) with ESMTPS id BEA0E38319DF for ; Wed, 14 Dec 2022 11:36:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BEA0E38319DF 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: bizesmtp67t1671017804tw29eeze Received: from rios-cad5.localdomain ( [58.60.1.11]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 14 Dec 2022 19:36:43 +0800 (CST) X-QQ-SSF: 01400000000000D0L000000A0000000 X-QQ-FEAT: VErM9xwdPg+upryvhFf1CpxajqFECFaklW8aqeIHJx7+LN/YzxFGVGilyKde2 Xe9nibgfjYyOT5gNFUpCrHKs03HKKk8bayMNpOjVCMSGx+xOyrzK1ObmpNCD4nYmmhwhxHZ dCZSlc3H+nEDkzClk/4SzCbCGmOK86Q2nLwkn3zh39OAx4D/RC5lG3OQhrf93IFRX+oerQL ZchuVWioNSx0LAfCj0uNTdPzfGirebpgLxMI7iCmBekq7D7meMh65Xg5Y4OY1bQF/6iyTHL u8ZOdVTe5yJHU8fTtTSDteNgQwiuvJY/y0W1YIPRR0X51Tuw9sOqb7+Ilv/ILVsE2hvct53 sild44ic39UFE/JVxKb9KnqOWaO+3DBUSe4r3OM2AGkHXvZghkjuMFj55/qgP7Sysup5x3/ SES1BcvqYh8XhaZWrWtgvA== 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 unit-stride store from ta attribute Date: Wed, 14 Dec 2022 19:36:41 +0800 Message-Id: <20221214113641.63320-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.8 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?1752189202576393863?= X-GMAIL-MSGID: =?utf-8?q?1752189202576393863?= From: Ju-Zhe Zhong Since store instructions doesn't care about tail policy, we remove vste from "ta" attribute. Hence, we could have more fusion chances and better optimization. gcc/ChangeLog: * config/riscv/vector.md: Remove vste. --- gcc/config/riscv/vector.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/riscv/vector.md b/gcc/config/riscv/vector.md index 7dfadaa96b6..84adbb9974a 100644 --- a/gcc/config/riscv/vector.md +++ b/gcc/config/riscv/vector.md @@ -221,7 +221,7 @@ ;; The tail policy op value. (define_attr "ta" "" - (cond [(eq_attr "type" "vlde,vste,vimov,vfmov,vlds") + (cond [(eq_attr "type" "vlde,vimov,vfmov,vlds") (symbol_ref "riscv_vector::get_ta(operands[5])")] (const_int INVALID_ATTRIBUTE)))