committed, thanks On Mon, Jan 23, 2023 at 3:39 AM Jeff Law via Gcc-patches < gcc-patches@gcc.gnu.org> wrote: > > > On 1/17/23 19:50, juzhe.zhong@rivai.ai wrote: > > From: Ju-Zhe Zhong > > > > Since LCM will destroy CFG, we are going to reorder the location of > VSETVL PASS > > at least before bbro (block-reorder PASS) which is before split3 PASS. > We need > > to call it in VSETVL PASS to get final RVV instructions patterns. > Just for the record. LCM does not destroy the CFG, it just splits > critical edges. > > > > > gcc/ChangeLog: > > > > * config/riscv/riscv-vsetvl.cc (pass_vsetvl::execute): Always > call split_all_insns. > OK. > jeff >