cfgcleanup: Ignore clobbers in bb_is_just_return
commitfd891ec7f659e8785c3ed5757f6e60c95117b837
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 May 2017 21:20:51 +0000 (22 21:20 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 May 2017 21:20:51 +0000 (22 21:20 +0000)
tree34cc1dd5be60d131c6db256516f0ff7f4e71c648
parent6944c5a9274ef683323c34a6fb8dc3af50fbf70f
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/

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248351 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cfgcleanup.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/conditional-return.c [new file with mode: 0644]