qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 8874fe7fc4e0bb1cef6e9a7409826aae7a00c1e9
parent 86f520a1f11561d0db5e1c540f3ace2f2bd8c376
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Mon, 23 Nov 2015 12:55:59 -0500

Tmp.phi must not be 0 for temporaries in phis

Diffstat:
Mlisc/live.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisc/live.c b/lisc/live.c @@ -40,10 +40,10 @@ phifix(int t1, short *phi, Tmp *tmp) t2 = phi[t]; if (t2 && t2 != t1) { if (t != t1) { - tmp[t1].phi = 0; + tmp[t1].phi = t1; t = t1; } else { - tmp[t2].phi = 0; + tmp[t2].phi = t2; phi[t2] = t2; } }