[PATCH] RISC-V: Enable RVV scalable vectorization by default[PR111311]

Juzhe-Zhong juzhe.zhong@rivai.ai
Thu Sep 7 07:28:31 GMT 2023


This patch is not ready but they all will be fixed very soon.

gcc/ChangeLog:

	* config/riscv/riscv.opt: Set default as scalable vectorization.

---
 gcc/config/riscv/riscv.opt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/riscv/riscv.opt b/gcc/config/riscv/riscv.opt
index 98f342348b7..bf2eca08221 100644
--- a/gcc/config/riscv/riscv.opt
+++ b/gcc/config/riscv/riscv.opt
@@ -292,7 +292,7 @@ EnumValue
 Enum(riscv_autovec_preference) String(fixed-vlmax) Value(RVV_FIXED_VLMAX)
 
 -param=riscv-autovec-preference=
-Target RejectNegative Joined Enum(riscv_autovec_preference) Var(riscv_autovec_preference) Init(NO_AUTOVEC)
+Target RejectNegative Joined Enum(riscv_autovec_preference) Var(riscv_autovec_preference) Init(RVV_SCALABLE)
 -param=riscv-autovec-preference=<string>	Set the preference of auto-vectorization in the RISC-V port.
 
 Enum
-- 
2.36.3



More information about the Gcc-patches mailing list