ref: 6a5373b289e74fb66819266a4b2fcfab5de23913
parent: 8f38494ab79c5fa806b9860c3b0a47f9e5ecaf34
author: Ori Bernstein <[email protected]>
date: Wed Jun 13 20:38:35 EDT 2012
Improve debug prints. Name things closer to what they're called in the data structures.
--- a/8/ra.c
+++ b/8/ra.c
@@ -180,7 +180,7 @@
fprintf(fd, ")\n");
/* in edges */
- fprintf(fd, "In: ");
+ fprintf(fd, "Pred: ");
sep = "";
for (i = 0; i < bsmax(bb->pred); i++) {
if (bshas(bb->pred, i)) {
@@ -191,7 +191,7 @@
fprintf(fd, "\n");
/* out edges */
- fprintf(fd, "Out: ");
+ fprintf(fd, "Succ: ");
sep = "";
for (i = 0; i < bsmax(bb->succ); i++) {
if (bshas(bb->succ, i)) {
--- a/opt/cfg.c
+++ b/opt/cfg.c
@@ -139,7 +139,7 @@
fprintf(fd, ")\n");
/* in edges */
- fprintf(fd, "In: ");
+ fprintf(fd, "Pred: ");
sep = "";
for (i = 0; i < bsmax(bb->pred); i++) {
if (bshas(bb->pred, i)) {
@@ -150,7 +150,7 @@
fprintf(fd, "\n");
/* out edges */
- fprintf(fd, "Out: ");
+ fprintf(fd, "Succ: ");
sep = "";
for (i = 0; i < bsmax(bb->succ); i++) {
if (bshas(bb->succ, i)) {