mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Prevent CSE of a REF_BASE operand across IR_RETF.
Reported by XmiliaH.
This commit is contained in:
parent
7b994e0ee0
commit
e73916d811
@ -2096,6 +2096,17 @@ LJFOLDF(xload_kptr)
|
|||||||
LJFOLD(XLOAD any any)
|
LJFOLD(XLOAD any any)
|
||||||
LJFOLDX(lj_opt_fwd_xload)
|
LJFOLDX(lj_opt_fwd_xload)
|
||||||
|
|
||||||
|
/* -- Frame handling ------------------------------------------------------ */
|
||||||
|
|
||||||
|
/* Prevent CSE of a REF_BASE operand across IR_RETF. */
|
||||||
|
LJFOLD(SUB any BASE)
|
||||||
|
LJFOLD(SUB BASE any)
|
||||||
|
LJFOLD(EQ any BASE)
|
||||||
|
LJFOLDF(fold_base)
|
||||||
|
{
|
||||||
|
return lj_opt_cselim(J, J->chain[IR_RETF]);
|
||||||
|
}
|
||||||
|
|
||||||
/* -- Write barriers ------------------------------------------------------ */
|
/* -- Write barriers ------------------------------------------------------ */
|
||||||
|
|
||||||
/* Write barriers are amenable to CSE, but not across any incremental
|
/* Write barriers are amenable to CSE, but not across any incremental
|
||||||
|
Loading…
Reference in New Issue
Block a user