mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
shuffle a bit visitins()
This commit is contained in:
parent
a55dd6fc07
commit
7d642e85cc
11
lisc/copy.c
11
lisc/copy.c
@ -56,15 +56,12 @@ visitins(Ins *i, Ref *cp, RList **w)
|
||||
{
|
||||
Ref r;
|
||||
|
||||
if (i->op != OCopy) {
|
||||
if (!req(i->to, R)) {
|
||||
assert(rtype(i->to) == RTmp);
|
||||
update(i->to, i->to, cp, w);
|
||||
}
|
||||
} else {
|
||||
assert(rtype(i->to) == RTmp);
|
||||
if (i->op == OCopy) {
|
||||
r = copyof(i->arg[0], cp);
|
||||
update(i->to, r, cp, w);
|
||||
} else if (!req(i->to, R)) {
|
||||
assert(rtype(i->to) == RTmp);
|
||||
update(i->to, i->to, cp, w);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user