]> gcc.gnu.org Git - gcc.git/commit
RISC-V: Refine frm emit after bb end in succ edges
authorPan Li <pan2.li@intel.com>
Thu, 9 Nov 2023 06:42:04 +0000 (14:42 +0800)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 20 Nov 2023 13:12:55 +0000 (06:12 -0700)
commite8e66da5167fda115dbb943f29fbaf2e7a4f8d8f
treeb025c989a1c33fa56cac2af871068836ae4e4ec3
parentaf4d208888cd97940fb142b17147145ece0171dd
RISC-V: Refine frm emit after bb end in succ edges

This patch would like to fine the frm insn emit when we
meet abnormal edge in the loop. Conceptually, we only need
to emit once when abnormal instead of every iteration in
the loop.

This patch would like to fix this defect and only perform
insert_insn_end_basic_block when at least one succ edge is
abnormal.

gcc/ChangeLog:

* config/riscv/riscv.cc (riscv_frm_emit_after_bb_end): Only
perform once emit when at least one succ edge is abnormal.

Signed-off-by: Pan Li <pan2.li@intel.com>
(cherry picked from commit 177ca16b615d285f419cf2ab0337bc01f7be09db)
gcc/config/riscv/riscv.cc
This page took 0.053257 seconds and 5 git commands to generate.