]> gcc.gnu.org Git - gcc.git/commit
[RFA] Minor improvement to coremark, avoid unconditional jump to return
authorJeff Law <jeffreyalaw@gmail.com>
Sun, 25 Sep 2022 16:23:59 +0000 (12:23 -0400)
committerJeff Law <jeffreyalaw@gmail.com>
Mon, 26 Sep 2022 13:40:41 +0000 (09:40 -0400)
commit1b74b5cb4e9d7191f298245063a8f9c3a1bbeff4
tree49bc167265f9dd5ef9e7fa564d63d0ad64227712
parent386ebf75f4c0342b1f823f4e4aba07abda3288d1
[RFA] Minor improvement to coremark, avoid unconditional jump to return

gcc/
* cfgcleanup.cc (bb_is_just_return): No longer static.
* cfgcleanup.h (bb_is_just_return): Add prototype.
* cfgrtl.cc (fixup_reorder_chain): Do not create an
unconditional jump to a return block.  Conditionally
remove unreachable blocks.

gcc/testsuite/

* gcc.target/riscv/ret-1.c: New test.
gcc/cfgcleanup.cc
gcc/cfgcleanup.h
gcc/cfgrtl.cc
gcc/testsuite/gcc.target/riscv/ret-1.c [new file with mode: 0644]
This page took 0.059293 seconds and 5 git commands to generate.