aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--flow.c2
-rw-r--r--validation/mem2reg/load-dead.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/flow.c b/flow.c
index d553df12..e4c881d5 100644
--- a/flow.c
+++ b/flow.c
@@ -453,10 +453,10 @@ void rewrite_load_instruction(struct instruction *insn, struct pseudo_list *domi
* and convert the load into a LNOP and replace the
* pseudo.
*/
+ convert_load_instruction(insn, new);
FOR_EACH_PTR(dominators, phi) {
kill_instruction(phi->def);
} END_FOR_EACH_PTR(phi);
- convert_load_instruction(insn, new);
return;
complex_phi:
diff --git a/validation/mem2reg/load-dead.c b/validation/mem2reg/load-dead.c
index 19ac4e5e..1165fa1e 100644
--- a/validation/mem2reg/load-dead.c
+++ b/validation/mem2reg/load-dead.c
@@ -12,7 +12,6 @@ static void foo(int a)
/*
* check-name: load-dead
* check-command: test-linearize -Wno-decl $file
- * check-known-to-fail
*
* check-output-ignore
* check-output-excludes: VOID