diff options
author | Ori Bernstein <ori@eigenstate.org> | 2015-08-23 14:40:35 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2015-08-23 14:40:35 -0700 |
commit | cf9651df0886dc8a4c0fbc6da8488606e1e85c31 (patch) | |
tree | f6d204af637c2f928fe64ec702a52a6b4df1fb3a | |
parent | 58d89cfed95d30bcd7fdfed4973237121803ad70 (diff) | |
download | mc-cf9651df0886dc8a4c0fbc6da8488606e1e85c31.tar.gz |
Remove dead code.
-rw-r--r-- | 6/ra.c | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -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; |