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.
This commit is contained in:
Ju-Zhe Zhong 2023-01-18 11:03:47 +08:00 committed by Kito Cheng
parent ca8fb00967
commit 5aa486e774

View file

@ -18,4 +18,4 @@
<http://www.gnu.org/licenses/>. */
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);