projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64880a7
)
loop-doloop: Add missing call to `onlyjump_p'
author
Maciej W. Rozycki
<macro@linux-mips.org>
Sat, 5 Dec 2020 18:26:25 +0000
(18:26 +0000)
committer
Maciej W. Rozycki
<macro@linux-mips.org>
Sat, 5 Dec 2020 18:26:25 +0000
(18:26 +0000)
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'.
gcc/loop-doloop.c
patch
|
blob
|
history
diff --git
a/gcc/loop-doloop.c
b/gcc/loop-doloop.c
index 02282d45bd545cbd3b207ec2b637196d226b9dfc..661e50298cc9a64741e267c68840f082faf6eea0 100644
(file)
--- a/
gcc/loop-doloop.c
+++ b/
gcc/loop-doloop.c
@@
-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);