mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix FOLD rule for CONV.flt.num(CONV.num.flt(x)) => x.
This commit is contained in:
parent
45df079c01
commit
a39aac0445
@ -931,11 +931,11 @@ LJFOLDF(simplify_conv_int_i64)
|
|||||||
return NEXTFOLD;
|
return NEXTFOLD;
|
||||||
}
|
}
|
||||||
|
|
||||||
LJFOLD(CONV CONV IRCONV_NUM_FLOAT) /* _NUM */
|
LJFOLD(CONV CONV IRCONV_FLOAT_NUM) /* _FLOAT */
|
||||||
LJFOLDF(simplify_conv_flt_num)
|
LJFOLDF(simplify_conv_flt_num)
|
||||||
{
|
{
|
||||||
PHIBARRIER(fleft);
|
PHIBARRIER(fleft);
|
||||||
if ((fleft->op2 & IRCONV_SRCMASK) == IRT_NUM)
|
if ((fleft->op2 & IRCONV_SRCMASK) == IRT_FLOAT)
|
||||||
return fleft->op1;
|
return fleft->op1;
|
||||||
return NEXTFOLD;
|
return NEXTFOLD;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user