do not rewrite overwritten slots in memopt
This commit is contained in:
parent
47a0556a16
commit
b8709501f9
1 changed files with 2 additions and 0 deletions
2
mem.c
2
mem.c
|
@ -43,6 +43,8 @@ memopt(Fn *fn)
|
|||
/* specific to NAlign == 3 */
|
||||
assert(rtype(i->to) == RTmp);
|
||||
t = &fn->tmp[i->to.val];
|
||||
if (t->ndef != 1)
|
||||
goto Skip;
|
||||
k = -1;
|
||||
s = -1;
|
||||
for (u=t->use; u != &t->use[t->nuse]; u++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue