]> git.ipfire.org Git - thirdparty/gcc.git/commit
rtl-ssa: Don't insert after insns that can throw
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 24 Oct 2023 10:30:53 +0000 (11:30 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 24 Oct 2023 10:30:52 +0000 (11:30 +0100)
commitd0eb4aceaa93eabd6153853b22e0e8c843de4184
tree3d526fbd46a6b2dacaf92cbba721187f580014e1
parentc97b167e35774e5add4d1079b552383d3fea62dc
rtl-ssa: Don't insert after insns that can throw

rtl_ssa::can_insert_after didn't handle insns that can throw.
Fixing that avoids a regression with a later patch.

gcc/
* rtl-ssa.h: Include cfgbuild.h.
* rtl-ssa/movement.h (can_insert_after): Replace is_jump with the
more comprehensive control_flow_insn_p.
gcc/rtl-ssa.h
gcc/rtl-ssa/movement.h