Message ID | alpine.LFD.2.21.2012031100220.656242@eddie.linux-mips.org |
---|---|
State | Accepted |
Headers | show |
Series | Add missing calls to `onlyjump_p' | expand |
On 12/3/20 4:35 AM, Maciej W. Rozycki wrote: > Keep any jump that has side effects as those must not be removed. > > gcc/ > * loop-doloop.c (add_test): Only remove the jump if `onlyjump_p'. OK jeff
On 12/3/20 4:35 AM, Maciej W. Rozycki wrote: > Keep any jump that has side effects as those must not be removed. > > gcc/ > * loop-doloop.c (add_test): Only remove the jump if `onlyjump_p'. OK jeff
Index: gcc/gcc/loop-doloop.c =================================================================== --- gcc.orig/gcc/loop-doloop.c +++ gcc/gcc/loop-doloop.c @@ -378,7 +378,7 @@ add_test (rtx cond, edge *e, basic_block bb = split_edge_and_insert (*e, seq); *e = single_succ_edge (bb); - if (any_uncondjump_p (jump)) + if (any_uncondjump_p (jump) && onlyjump_p (jump)) { /* The condition is always true. */ delete_insn (jump);