shithub: mc

Download patch

ref: 3a6dd3e06fb6508c637ad28e538fbd838cd56f75
parent: b350574a9345bc0f4bdd603c336457d2268060f6
author: Ori Bernstein <[email protected]>
date: Tue Feb 5 10:35:40 EST 2013

Silence more debug dumps.

--- a/6/ra.c
+++ b/6/ra.c
@@ -1020,11 +1020,13 @@
             for (i = 0; i < nuse; i++) {
                 insn = mkinsn(Imov, spillslot(s, use[i].oldreg), use[i].newreg, NULL);
                 lappend(&new, &nnew, insn);
-                printf("loading ");
-                locprint(stdout, locmap[use[i].oldreg], 'x');
-                printf(" -> ");
-                locprint(stdout, use[i].newreg, 'x');
-                printf("\n");
+                if (debugopt['r']) {
+                    printf("loading ");
+                    locprint(stdout, locmap[use[i].oldreg], 'x');
+                    printf(" -> ");
+                    locprint(stdout, use[i].newreg, 'x');
+                    printf("\n");
+                }
             }
             insn = bb->il[j];
             updatelocs(s, insn, use, nuse, def, ndef);
@@ -1032,11 +1034,13 @@
             for (i = 0; i < ndef; i++) {
                 insn = mkinsn(Imov, def[i].newreg, spillslot(s, def[i].oldreg), NULL);
                 lappend(&new, &nnew, insn);
-                printf("storing ");
-                locprint(stdout, locmap[def[i].oldreg], 'x');
-                printf(" -> ");
-                locprint(stdout, def[i].newreg, 'x');
-                printf("\n");
+                if (debugopt['r']) {
+                    printf("storing ");
+                    locprint(stdout, locmap[def[i].oldreg], 'x');
+                    printf(" -> ");
+                    locprint(stdout, def[i].newreg, 'x');
+                    printf("\n");
+                }
             }
         } else {
             lappend(&new, &nnew, bb->il[j]);
@@ -1051,7 +1055,7 @@
 {
     s->stksz->lit += modesize[l->mode];
     s->stksz->lit = align(s->stksz->lit, modesize[l->mode]);
-    if (debugopt['r'] || 1) {
+    if (debugopt['r']) {
         printf("spill ");
         locprint(stdout, l, 'x');
         printf(" to %zd(%%rbp)\n", s->stksz->lit);