diff options
| -rw-r--r-- | flow.c | 7 | ||||
| -rw-r--r-- | validation/optim/kill-stores2.c | 1 |
2 files changed, 2 insertions, 6 deletions
@@ -594,11 +594,8 @@ static void kill_dead_stores_bb(pseudo_t pseudo, unsigned long generation, struc } END_FOR_EACH_PTR_REVERSE(insn); FOR_EACH_PTR(bb->parents, parent) { - struct basic_block *child; - FOR_EACH_PTR(parent->children, child) { - if (child && child != bb) - return; - } END_FOR_EACH_PTR(child); + if (bb_list_size(parent->children) > 1) + continue; kill_dead_stores_bb(pseudo, generation, parent, local); } END_FOR_EACH_PTR(parent); } diff --git a/validation/optim/kill-stores2.c b/validation/optim/kill-stores2.c index 69288848..861b5ece 100644 --- a/validation/optim/kill-stores2.c +++ b/validation/optim/kill-stores2.c @@ -11,7 +11,6 @@ static void foo(void) /* * check-name: kill-stores2 * check-command: test-linearize $file - * check-known-to-fail * * check-output-ignore * check-output-excludes: store\\. |
