mirror of
git://c9x.me/qbe.git
synced 2026-04-06 02:19:47 +00:00
refine the clobber code
It could very well be that the temporary we assign already got assigned to the right register! Good things happen.
This commit is contained in:
parent
c62b175442
commit
5668e93147
@ -233,7 +233,7 @@ dopm(Blk *b, Ins *i, RMap *m)
|
||||
else if (isreg(i->arg[0]))
|
||||
for (;; i--) {
|
||||
r = RBASE(i->arg[0].val);
|
||||
if (BGET(m->b, r)) {
|
||||
if (BGET(m->b, r) && rfind(m, i->to.val) != r) {
|
||||
for (n=0; m->r[n] != r; n++)
|
||||
assert(n+1 < m->n);
|
||||
t = m->t[n];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user