mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 15:11:08 +08:00
loop-doloop: Add missing call to `onlyjump_p'
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'.
This commit is contained in:
parent
64880a7c49
commit
4b70b2e07a
@ -378,7 +378,7 @@ add_test (rtx cond, edge *e, basic_block dest)
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user