diff options
-rw-r--r-- | src/lj_opt_narrow.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_opt_narrow.c b/src/lj_opt_narrow.c index 700c23d4..2f02407c 100644 --- a/src/lj_opt_narrow.c +++ b/src/lj_opt_narrow.c | |||
@@ -341,7 +341,8 @@ static int narrow_conv_backprop(NarrowConv *nc, IRRef ref, int depth) | |||
341 | NarrowIns *savesp = nc->sp; | 341 | NarrowIns *savesp = nc->sp; |
342 | int count = narrow_conv_backprop(nc, ir->op1, depth); | 342 | int count = narrow_conv_backprop(nc, ir->op1, depth); |
343 | count += narrow_conv_backprop(nc, ir->op2, depth); | 343 | count += narrow_conv_backprop(nc, ir->op2, depth); |
344 | if (count <= 1) { /* Limit total number of conversions. */ | 344 | /* Limit total number of conversions. */ |
345 | if (count <= 1 && nc->sp < nc->maxsp) { | ||
345 | *nc->sp++ = NARROWINS(IRT(ir->o, nc->t), ref); | 346 | *nc->sp++ = NARROWINS(IRT(ir->o, nc->t), ref); |
346 | return count; | 347 | return count; |
347 | } | 348 | } |