[PATCH] RISC-V: Remove unit-stride store from ta attribute

juzhe.zhong@rivai.ai juzhe.zhong@rivai.ai
Wed Dec 14 11:36:41 GMT 2022


From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>

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)))
 
-- 
2.36.3



More information about the Gcc-patches mailing list