From: ceriel Date: Sat, 21 Feb 1987 22:20:10 +0000 (+0000) Subject: An attempt to make "erasereg" a little more efficient, as it seems X-Git-Tag: release-5-5~4657 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=f2a77335b0a321d7a76ea2479770be3d7c291e11;p=ack.git An attempt to make "erasereg" a little more efficient, as it seems often to be called to erase the condition codes. --- diff --git a/mach/proto/cg/reg.c b/mach/proto/cg/reg.c index 187c92482..3b394eca3 100644 --- a/mach/proto/cg/reg.c +++ b/mach/proto/cg/reg.c @@ -73,14 +73,19 @@ erasereg(regno) { register struct reginfo *rp; register int i; -#if MAXMEMBERS==0 +#if MAXMEMBERS!=0 + if (regno == 1) { /* condition codes */ +#endif rp = &machregs[regno]; rp->r_contents.t_token = 0; for (i=0;ir_contents.t_att[i].aw = 0; +#if MAXMEMBERS == 0 awayreg(regno); + #else + } else for (rp=machregs;rpr_clash[regno>>4]&(1<<(regno&017))) { rp->r_contents.t_token = 0;