mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
do not do dce on register assignments
This commit is contained in:
parent
bbbc8994f9
commit
3ef1d83866
@ -339,7 +339,7 @@ rega(Fn *fn)
|
||||
if (!req(i->to, R)) {
|
||||
assert(rtype(i->to) == RTmp);
|
||||
r = rfree(&cur, i->to.val);
|
||||
if (r == -1) {
|
||||
if (r == -1 && !isreg(i->to)) {
|
||||
*i = (Ins){.op = ONop};
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user