aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir/optmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'ir/optmem.c')
-rw-r--r--ir/optmem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir/optmem.c b/ir/optmem.c
index d28ea53..3f5852b 100644
--- a/ir/optmem.c
+++ b/ir/optmem.c
@@ -225,7 +225,6 @@ cmpuse(const void *a, const void *b)
return blkfindins(blk, ua->u) - blkfindins(blk, ub->u);
}
-/* require use, blkid; keeps use */
void
mem2reg(struct function *fn)
{
@@ -233,6 +232,8 @@ mem2reg(struct function *fn)
struct ssabuilder sb = { .nblk = fn->nblk };
struct block *blk;
+ FREQUIRE(FNUSE);
+
if (fn->nblk <= 64 * arraylength(bsbuf[0])) {
sb.sealed = bsbuf[0];
sb.marked = bsbuf[1];