aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--simplify.c2
-rw-r--r--simplify.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/simplify.c b/simplify.c
index 69eae4f8..2c587bea 100644
--- a/simplify.c
+++ b/simplify.c
@@ -443,7 +443,7 @@ static inline int replace_pseudo(struct instruction *insn, pseudo_t *pp, pseudo_
return REPEAT_CSE;
}
-static int replace_with_pseudo(struct instruction *insn, pseudo_t pseudo)
+int replace_with_pseudo(struct instruction *insn, pseudo_t pseudo)
{
convert_instruction_target(insn, pseudo);
return kill_instruction(insn);
diff --git a/simplify.h b/simplify.h
index 200d79c0..ed3dd971 100644
--- a/simplify.h
+++ b/simplify.h
@@ -5,4 +5,6 @@
int simplify_instruction(struct instruction *insn);
+int replace_with_pseudo(struct instruction *insn, pseudo_t pseudo);
+
#endif