Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix FOLD rule for CONV.flt.num(CONV.num.flt(x)) => x.

  • Loading branch information...
commit a39aac04458bccce6b674bc7995de721aeff9abf 1 parent 45df079
Mike Pall authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/lj_opt_fold.c
View
4 src/lj_opt_fold.c
@@ -931,11 +931,11 @@ LJFOLDF(simplify_conv_int_i64)
return NEXTFOLD;
}
-LJFOLD(CONV CONV IRCONV_NUM_FLOAT) /* _NUM */
+LJFOLD(CONV CONV IRCONV_FLOAT_NUM) /* _FLOAT */
LJFOLDF(simplify_conv_flt_num)
{
PHIBARRIER(fleft);
- if ((fleft->op2 & IRCONV_SRCMASK) == IRT_NUM)
+ if ((fleft->op2 & IRCONV_SRCMASK) == IRT_FLOAT)
return fleft->op1;
return NEXTFOLD;
}
Please sign in to comment.
Something went wrong with that request. Please try again.