do not create useless mem refs
This commit is contained in:
parent
7815610cd8
commit
e9ccf35b8a
1 changed files with 1 additions and 1 deletions
2
isel.c
2
isel.c
|
@ -162,7 +162,7 @@ seladdr(Ref *r, ANum *an, Fn *fn)
|
|||
r0 = *r;
|
||||
if (rtype(r0) == RTmp) {
|
||||
amatch(&a, r0, an, fn, 1);
|
||||
if (req(a.base, R))
|
||||
if (req(a.base, R) || req(a.base, r0))
|
||||
return;
|
||||
chuse(r0, -1, fn);
|
||||
vgrow(&fn->mem, ++fn->nmem);
|
||||
|
|
Loading…
Add table
Reference in a new issue