From: Ju-Zhe Zhong Date: Wed, 18 Jan 2023 03:03:47 +0000 (+0800) Subject: RISC-V: Reorder VSETVL pass location X-Git-Tag: basepoints/gcc-14~1778 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5aa486e7740a0bc83168d806806d1149e6e90310;p=thirdparty%2Fgcc.git RISC-V: Reorder VSETVL pass location Insert before dce means we don't invoke DCE by this pass itself, and also we can leverage the effort of BB reorder. gcc/ChangeLog: * config/riscv/riscv-passes.def (INSERT_PASS_BEFORE): Reorder VSETVL pass. --- diff --git a/gcc/config/riscv/riscv-passes.def b/gcc/config/riscv/riscv-passes.def index e68de681943b..4084122cf0a8 100644 --- a/gcc/config/riscv/riscv-passes.def +++ b/gcc/config/riscv/riscv-passes.def @@ -18,4 +18,4 @@ . */ INSERT_PASS_AFTER (pass_rtl_store_motion, 1, pass_shorten_memrefs); -INSERT_PASS_BEFORE (pass_sched2, 1, pass_vsetvl); +INSERT_PASS_BEFORE (pass_fast_rtl_dce, 1, pass_vsetvl);