summary refs log tree commit diff
path: root/lisc/spill.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-25 10:44:59 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-25 10:45:17 -0500
commit148f3e3e7efd143b7311f562b9c527a450b4a3b9 (patch)
tree0f4b9e38c35dbf594f467942a3417a442423e345 /lisc/spill.c
parentbe1f7cbf23a11977bcf8f18dd7fa0c4fb52f336a (diff)
downloadroux-148f3e3e7efd143b7311f562b9c527a450b4a3b9.tar.gz
add note about comparisons in spill
Diffstat (limited to 'lisc/spill.c')
-rw-r--r--lisc/spill.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisc/spill.c b/lisc/spill.c
index 8ba1031..40bd326 100644
--- 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;
 	}