aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--simplify.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/simplify.c b/simplify.c
index 3d398292..bf6397df 100644
--- a/simplify.c
+++ b/simplify.c
@@ -1606,6 +1606,8 @@ static inline bool can_move_to(pseudo_t src, struct instruction *dst)
return true;
def = src->def;
+ if (dst == def)
+ return false;
bbs = def->bb;
bbd = dst->bb;
if (bbs == bbd)