]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Enable RVV scalable vectorization by default[PR111311]
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Thu, 7 Sep 2023 07:28:31 +0000 (15:28 +0800)
committerPan Li <pan2.li@intel.com>
Mon, 11 Sep 2023 13:21:08 +0000 (21:21 +0800)
This patch is not ready but they all will be fixed very soon.

gcc/ChangeLog:

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

gcc/config/riscv/riscv.opt

index 569e9af2e30cba38605ef88469dd4922c10bb25a..6f769c3020ba00a9506a54789224c81cac9b3c67 100644 (file)
@@ -295,7 +295,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