cfgcleanup: Ignore clobbers in bb_is_just_return
authorSegher Boessenkool <segher@kernel.crashing.org>
Mon, 22 May 2017 21:20:51 +0000 (23:20 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Mon, 22 May 2017 21:20:51 +0000 (23:20 +0200)
commit2ea0d750147582b5d7bf405dce36f864618eacbd
tree34cc1dd5be60d131c6db256516f0ff7f4e71c648
parent25b8168681bb5d1bc5e74c54b8f4cad635636ff1
cfgcleanup: Ignore clobbers in bb_is_just_return

The function bb_is_just_return finds if the BB it is asked about does
just a return and nothing else.  It currently does not allow clobbers
in the block either, which we of course can allow just fine.

This patch changes that.

* cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.

gcc/testsuite/

From-SVN: r248351
gcc/ChangeLog
gcc/cfgcleanup.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/conditional-return.c [new file with mode: 0644]