aboutsummaryrefslogtreecommitdiffhomepage
path: root/amd64/isel.c
diff options
context:
space:
mode:
Diffstat (limited to 'amd64/isel.c')
-rw-r--r--amd64/isel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/amd64/isel.c b/amd64/isel.c
index 23ce3d2..64cda27 100644
--- a/amd64/isel.c
+++ b/amd64/isel.c
@@ -459,6 +459,7 @@ sel(struct function *fn, struct instr *ins, struct block *blk, int *curi)
if (isintcon(ins->l)) {
/* sub imm, x -> sub x, imm; neg x */
fixarg(&ins->l, ins, blk, curi);
+ ins->inplace = 1;
struct instr sub = *ins;
rswap(sub.l, sub.r);
ins->op = Oneg;