qbe

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

commit 01a8102c3d46732e9cc1a6974551ed4e12f7e173
parent ebaec26046c54995f597d2043e2d3b3a3413bc18
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Wed, 24 Feb 2016 12:53:08 -0500

use default use/def counts in newtmp()

This is paliative, before I check that all use
counts in isel.c are correct.

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

diff --git a/lisc/util.c b/lisc/util.c @@ -200,6 +200,8 @@ newtmp(char *prfx, Fn *fn) vgrow(&fn->tmp, fn->ntmp); sprintf(fn->tmp[t].name, "%s%d", prfx, ++n); fn->tmp[t].slot = -1; + fn->tmp[t].nuse = +1; + fn->tmp[t].ndef = +1; return TMP(t); }