diff options
Diffstat (limited to 'x86_64/isel.c')
| -rw-r--r-- | x86_64/isel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/x86_64/isel.c b/x86_64/isel.c index 19692ed..2b087cd 100644 --- a/x86_64/isel.c +++ b/x86_64/isel.c @@ -507,6 +507,7 @@ sel(struct function *fn, struct instr *ins, struct block *blk, int *curi) ALU: if (!(op == Oadd && kisint(ins->cls))) /* 3-address add is lea */ if (!(op == Omul && kisint(ins->cls) && isimm32(ins->r))) /* for (I)MUL r,r/m,imm */ + if (!(op == Oshl && ins->r.t == RICON && ins->r.i <= 3)) /* can be lea */ ins->inplace = 1; if (iscon(ins->l)) { fixarg(&ins->l, ins, blk, curi); |