aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--simplify.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/simplify.c b/simplify.c
index f6b79685..0c75b3fa 100644
--- a/simplify.c
+++ b/simplify.c
@@ -465,6 +465,11 @@ static int replace_with_pseudo(struct instruction *insn, pseudo_t pseudo)
return REPEAT_CSE;
}
+static inline int replace_with_value(struct instruction *insn, long long val)
+{
+ return replace_with_pseudo(insn, value_pseudo(val));
+}
+
static inline int def_opcode(pseudo_t p)
{
if (p->type != PSEUDO_REG)