commit 148f3e3e7efd143b7311f562b9c527a450b4a3b9
parent be1f7cbf23a11977bcf8f18dd7fa0c4fb52f336a
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Wed, 25 Nov 2015 10:44:59 -0500
add note about comparisons in spill
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/lisc/spill.c b/lisc/spill.c
@@ -319,6 +319,11 @@ spill(Fn *fn)
tmp[p->to.val].wide = p->wide;
for (i=b->ins; i-b->ins < b->nins; i++)
if (rtype(i->to) == RTmp)
+ /* Note: this only works because
+ * all OCmp operations were eliminated
+ * indeed, the wide bit of those refer
+ * to the size of the operands
+ */
tmp[i->to.val].wide = i->wide;
}