mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Remove unneeded PHI barrier for reassociation of duplicate ops.
This commit is contained in:
parent
76a2a7c857
commit
f34ac81e3a
@ -1450,7 +1450,6 @@ LJFOLD(BAND BAND any)
|
|||||||
LJFOLD(BOR BOR any)
|
LJFOLD(BOR BOR any)
|
||||||
LJFOLDF(reassoc_dup)
|
LJFOLDF(reassoc_dup)
|
||||||
{
|
{
|
||||||
PHIBARRIER(fleft);
|
|
||||||
if (fins->op2 == fleft->op1 || fins->op2 == fleft->op2)
|
if (fins->op2 == fleft->op1 || fins->op2 == fleft->op2)
|
||||||
return LEFTFOLD; /* (a o b) o a ==> a o b; (a o b) o b ==> a o b */
|
return LEFTFOLD; /* (a o b) o a ==> a o b; (a o b) o b ==> a o b */
|
||||||
return NEXTFOLD;
|
return NEXTFOLD;
|
||||||
|
Loading…
Reference in New Issue
Block a user