Message ID | 20170809112831.GH16312@bubble.grove.modra.org |
---|---|
State | New |
Headers | show |
Ping? On Wed, Aug 09, 2017 at 08:58:31PM +0930, Alan Modra wrote: > PR rtl-optimization/81747 > * cse.c (cse_extended_basic_block): Don't attempt to record > equivalences for degenerate conditional jumps that branch > to their fall-through. > > diff --git a/gcc/cse.c b/gcc/cse.c > index 6a968d1..85be372 100644 > --- a/gcc/cse.c > +++ b/gcc/cse.c > @@ -6640,6 +6640,7 @@ cse_extended_basic_block (struct cse_basic_block_data *ebb_data) > equivalences due to the condition being tested. */ > insn = BB_END (bb); > if (path_entry < path_size - 1 > + && EDGE_COUNT (bb->succs) == 2 > && JUMP_P (insn) > && single_set (insn) > && any_condjump_p (insn))
On 08/15/2017 09:27 PM, Alan Modra wrote: > Ping? > > On Wed, Aug 09, 2017 at 08:58:31PM +0930, Alan Modra wrote: >> PR rtl-optimization/81747 >> * cse.c (cse_extended_basic_block): Don't attempt to record >> equivalences for degenerate conditional jumps that branch >> to their fall-through. OK. Sorry I didn't see this one in my queue. Thanks for pinging it. jeff
diff --git a/gcc/cse.c b/gcc/cse.c index 6a968d1..85be372 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -6640,6 +6640,7 @@ cse_extended_basic_block (struct cse_basic_block_data *ebb_data) equivalences due to the condition being tested. */ insn = BB_END (bb); if (path_entry < path_size - 1 + && EDGE_COUNT (bb->succs) == 2 && JUMP_P (insn) && single_set (insn) && any_condjump_p (insn))