diff mbox series

RISC-V: Remove redundant attributes

Message ID 20230127225714.261700-1-juzhe.zhong@rivai.ai
State New
Headers show
Series RISC-V: Remove redundant attributes | expand

Commit Message

juzhe.zhong@rivai.ai Jan. 27, 2023, 10:57 p.m. UTC
From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>

---
 gcc/config/riscv/vector.md | 20 --------------------
 1 file changed, 20 deletions(-)

Comments

Kito Cheng Jan. 28, 2023, 3:35 a.m. UTC | #1
committed, thanks!

On Sat, Jan 28, 2023 at 6:58 AM <juzhe.zhong@rivai.ai> wrote:

> From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
>
> ---
>  gcc/config/riscv/vector.md | 20 --------------------
>  1 file changed, 20 deletions(-)
>
> diff --git a/gcc/config/riscv/vector.md b/gcc/config/riscv/vector.md
> index 8c60eb20d72..4319266974d 100644
> --- a/gcc/config/riscv/vector.md
> +++ b/gcc/config/riscv/vector.md
> @@ -208,26 +208,6 @@
>          (const_int 4)]
>         (const_int INVALID_ATTRIBUTE)))
>
> -;; The index of operand[] to get the tail policy op.
> -(define_attr "tail_policy_op_idx" ""
> -  (cond [(eq_attr "type" "vlde,vste,vimov,vfmov,vlds")
> -        (const_int 5)]
> -       (const_int INVALID_ATTRIBUTE)))
> -
> -;; The index of operand[] to get the mask policy op.
> -(define_attr "mask_policy_op_idx" ""
> -  (cond [(eq_attr "type" "vlde,vste,vlds")
> -        (const_int 6)]
> -       (const_int INVALID_ATTRIBUTE)))
> -
> -;; The index of operand[] to get the mask policy op.
> -(define_attr "avl_type_op_idx" ""
> -  (cond [(eq_attr "type"
> "vlde,vlde,vste,vimov,vimov,vimov,vfmov,vlds,vlds")
> -        (const_int 7)
> -        (eq_attr "type" "vldm,vstm,vimov,vmalu,vmalu")
> -        (const_int 5)]
> -       (const_int INVALID_ATTRIBUTE)))
> -
>  ;; The tail policy op value.
>  (define_attr "ta" ""
>    (cond [(eq_attr "type" "vlde,vimov,vfmov,vlds")
> --
> 2.36.3
>
>
diff mbox series

Patch

diff --git a/gcc/config/riscv/vector.md b/gcc/config/riscv/vector.md
index 8c60eb20d72..4319266974d 100644
--- a/gcc/config/riscv/vector.md
+++ b/gcc/config/riscv/vector.md
@@ -208,26 +208,6 @@ 
 	 (const_int 4)]
 	(const_int INVALID_ATTRIBUTE)))
 
-;; The index of operand[] to get the tail policy op.
-(define_attr "tail_policy_op_idx" ""
-  (cond [(eq_attr "type" "vlde,vste,vimov,vfmov,vlds")
-	 (const_int 5)]
-	(const_int INVALID_ATTRIBUTE)))
-
-;; The index of operand[] to get the mask policy op.
-(define_attr "mask_policy_op_idx" ""
-  (cond [(eq_attr "type" "vlde,vste,vlds")
-	 (const_int 6)]
-	(const_int INVALID_ATTRIBUTE)))
-
-;; The index of operand[] to get the mask policy op.
-(define_attr "avl_type_op_idx" ""
-  (cond [(eq_attr "type" "vlde,vlde,vste,vimov,vimov,vimov,vfmov,vlds,vlds")
-	 (const_int 7)
-	 (eq_attr "type" "vldm,vstm,vimov,vmalu,vmalu")
-	 (const_int 5)]
-	(const_int INVALID_ATTRIBUTE)))
-
 ;; The tail policy op value.
 (define_attr "ta" ""
   (cond [(eq_attr "type" "vlde,vimov,vfmov,vlds")