On Sat, Jun 11, 2022 at 11:43 PM Takayuki 'January June' Suwa <jjsuwa_sys3...@yahoo.co.jp> wrote: > > No need to describe the "false side" conditional insn patterns anymore. > > gcc/ChangeLog: > > * config/xtensa/xtensa-protos.h (xtensa_emit_branch): > Remove the first argument. > (xtensa_emit_bit_branch): Remove it because now called only from the > output statement of *bittrue insn pattern. > * config/xtensa/xtensa.cc (gen_int_relational): Remove the last > argument 'p_invert', and make so that the condition is reversed by > itself as needed. > (xtensa_expand_conditional_branch): Share the common path, and remove > condition inversion code. > (xtensa_emit_branch, xtensa_emit_movcc): Simplify by removing the > "false side" pattern. > (xtensa_emit_bit_branch): Remove it because of the abovementioned > reason, and move the function body to *bittrue insn pattern. > * config/xtensa/xtensa.md (*bittrue): Transplant the output > statement from removed xtensa_emit_bit_branch(). > (*bfalse, *ubfalse, *bitfalse, *maskfalse): Remove the "false side" > insn patterns. > --- > gcc/config/xtensa/xtensa-protos.h | 3 +- > gcc/config/xtensa/xtensa.cc | 111 ++++++++++------------------ > gcc/config/xtensa/xtensa.md | 117 ++++++++---------------------- > 3 files changed, 70 insertions(+), 161 deletions(-)
Regtested for target=xtensa-linux-uclibc, no new regressions. Committed to master. -- Thanks. -- Max