This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]