summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-07-21 19:04:13 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:28 -0400
commit7f8a6d025ca53e0e1a0621bd7a89a7a6cc5fc754 (patch)
treec8d267d4d3917bf978be4d88aad5a7d90b906554 /lisc
parent595ad96a34aaf3d945dc70bab2279e292f3a70b2 (diff)
downloadroux-7f8a6d025ca53e0e1a0621bd7a89a7a6cc5fc754.tar.gz
test code for the spiller
Diffstat (limited to 'lisc')
-rw-r--r--lisc/main.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/lisc/main.c b/lisc/main.c
index c0c147b..98a486a 100644
--- a/lisc/main.c
+++ b/lisc/main.c
@@ -70,6 +70,23 @@ main(int ac, char *av[])
 		pr = 0;
 		break;
 	}
+	case 's': {
+		Blk *b;
+
+		fprintf(stderr, "[Testing Spilling]\n");
+		fillrpo(fn);
+		filllive(fn);
+		fillcost(fn);
+		spill(fn);
+		for (b=fn->start; b; b=b->link) {
+			printf("> In regs after block %s: [",
+				b->name);
+			dumprset(&b->out, fn);
+			printf(" ]\n");
+		}
+		pr = 0;
+		break;
+	}
 	default:
 		break;
 	}