Compile-time option GLOBAL_OPT defined. If set, the resulting
authorem <none@none>
Fri, 14 Sep 1984 10:25:07 +0000 (10:25 +0000)
committerem <none@none>
Fri, 14 Sep 1984 10:25:07 +0000 (10:25 +0000)
peephole optimizer will be suitable for optimizing the output of
the global optimizer. In particular, it doesn't change the register
messages.

util/opt/reg.c

index 643fb95..9c1081c 100644 (file)
@@ -93,9 +93,14 @@ outregs() {
 incregusage(off) offset off; {
        register reg_p rp;
 
+#ifndef GLOBAL_OPT
+       /* If we're optimizing the output of the global optimizer
+        * we must not change the count fields of the register messages.
+        */
        for(rp=curpro.freg; rp != (reg_p) 0; rp=rp->r_next)
                if (rp->r_par[0]==off) {
                        rp->r_par[3]++;
                        return;
                }
+#endif
 }