This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r248351 - in /trunk/gcc: ChangeLog cfgcleanup.c...
- From: segher at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 22 May 2017 21:20:51 -0000
- Subject: r248351 - in /trunk/gcc: ChangeLog cfgcleanup.c...
Author: segher
Date: Mon May 22 21:20:51 2017
New Revision: 248351
URL: https://gcc.gnu.org/viewcvs?rev=248351&root=gcc&view=rev
Log:
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/
Added:
trunk/gcc/testsuite/gcc.target/powerpc/conditional-return.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cfgcleanup.c
trunk/gcc/testsuite/ChangeLog