mirror of
git://c9x.me/qbe.git
synced 2026-04-07 10:59:47 +00:00
fix spill bug on return nodes
When a node has no successor, its inregs out was initialized with garbage.
This commit is contained in:
parent
77cfb14f58
commit
fb838ce095
@ -378,9 +378,9 @@ spill(Fn *fn)
|
|||||||
if (s2 && s2->id <= n)
|
if (s2 && s2->id <= n)
|
||||||
if (!hd || s2->id >= hd->id)
|
if (!hd || s2->id >= hd->id)
|
||||||
hd = s2;
|
hd = s2;
|
||||||
|
BZERO(v);
|
||||||
if (hd) {
|
if (hd) {
|
||||||
/* back-edge */
|
/* back-edge */
|
||||||
BZERO(v);
|
|
||||||
for (k=0; k<2; k++) {
|
for (k=0; k<2; k++) {
|
||||||
n = k == 0 ? NIReg : NFReg;
|
n = k == 0 ? NIReg : NFReg;
|
||||||
for (z=0; z<BITS; z++) {
|
for (z=0; z<BITS; z++) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user