Skip to content

Commit

Permalink
Fix FOLD rule for CONV.flt.num(CONV.num.flt(x)) => x.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Pall committed Oct 18, 2011
1 parent 45df079 commit a39aac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lj_opt_fold.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit a39aac0

Please sign in to comment.