aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ir_ssa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir_ssa.c')
-rw-r--r--src/ir_ssa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ir_ssa.c b/src/ir_ssa.c
index 6e7945b..a1d960f 100644
--- a/src/ir_ssa.c
+++ b/src/ir_ssa.c
@@ -35,6 +35,8 @@ copyopt(Function *fn)
if (ins->cls != k) continue;
replcuses(var, arg);
+ if (arg.t == RTMP)
+ deluse(blk, var.i, arg);
*ins = mkinstr0(Onop,0);
deluses(var.i);
}