From 8577356f4b8a2c9a397390339006eca8f6efa14d Mon Sep 17 00:00:00 2001 From: Ju-Zhe Zhong Date: Wed, 14 Dec 2022 19:36:41 +0800 Subject: [PATCH] RISC-V: Remove unit-stride store from ta attribute 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 9853738..52ca6b3 100644 --- a/gcc/config/riscv/vector.md +++ b/gcc/config/riscv/vector.md @@ -241,7 +241,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))) -- 2.7.4