This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r242947 - in /trunk/gcc: ChangeLog combine.c
- From: segher at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 29 Nov 2016 02:02:46 -0000
- Subject: r242947 - in /trunk/gcc: ChangeLog combine.c
Author: segher
Date: Tue Nov 29 02:02:45 2016
New Revision: 242947
URL: https://gcc.gnu.org/viewcvs?rev=242947&root=gcc&view=rev
Log:
combine: Make code after a new trap unreachable (PR78342)
Combine can turn a conditional trap into an unconditional trap. If it
does that it should make the code after it unreachable (an unconditional
trap should be the last insn in its bb, and that bb has no successors).
This patch seems to work. It is hard to be sure, this is very hard to
trigger. Quite a few other passes look like they need something similar
as well, but I don't see anything else handling it yet either.
PR rtl-optimization/78342
* combine.c: Include "cfghooks.h".
(try_combine): If we create an unconditional trap, break the basic
block in two just after it, and remove the edge between; also, set
the *new_direct_jump_p flag so that cleanup_cfg is run.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/combine.c