summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-08-23 14:40:35 -0700
committerOri Bernstein <ori@eigenstate.org>2015-08-23 14:40:35 -0700
commitcf9651df0886dc8a4c0fbc6da8488606e1e85c31 (patch)
treef6d204af637c2f928fe64ec702a52a6b4df1fb3a /6
parent58d89cfed95d30bcd7fdfed4973237121803ad70 (diff)
downloadmc-cf9651df0886dc8a4c0fbc6da8488606e1e85c31.tar.gz
Remove dead code.
Diffstat (limited to '6')
-rw-r--r--6/ra.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/6/ra.c b/6/ra.c
index 14750c6..b10047a 100644
--- a/6/ra.c
+++ b/6/ra.c
@@ -917,25 +917,6 @@ static void freeze(Isel *s)
freezemoves(s, l);
}
-static int spillmetric(Isel *s, regid r)
-{
- if (s->nuses[r] == 0)
- return -1;
- if (bshas(s->neverspill, r))
- return -10000;
- return s->degree[r] * 100 / s->nuses[r];
-}
-
-Isel *_isel;
-static int loccmp(const void *pa, const void *pb)
-{
- Loc *a, *b;
-
- a = *(Loc**)pa;
- b = *(Loc**)pb;
- return spillmetric(_isel, b->reg.id) - spillmetric(_isel, a->reg.id);
-}
-
/* Select the spill candidates */
static void selspill(Isel *s)
{
@@ -944,7 +925,6 @@ static void selspill(Isel *s)
/* FIXME: pick a better heuristic for spilling */
m = NULL;
- _isel = s;
for (i = 0; i < s->nwlspill; i++) {
if (!bshas(s->shouldspill, s->wlspill[i]->reg.id))
continue;