]> gcc.gnu.org Git - gcc.git/commitdiff
RISC-V: Reorder VSETVL pass location
authorJu-Zhe Zhong <juzhe.zhong@rivai.ai>
Wed, 18 Jan 2023 03:03:47 +0000 (11:03 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Fri, 27 Jan 2023 09:37:20 +0000 (17:37 +0800)
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.

gcc/config/riscv/riscv-passes.def

index e68de681943b60eb92f8369bc89866981c1da492..4084122cf0a8edef3486862a57005ba279501e07 100644 (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);
This page took 0.290774 seconds and 5 git commands to generate.