Commit 9393ffff authored by Kevin Modzelewski's avatar Kevin Modzelewski

Disable the no-vreg-for-block-local optimization, again

parent b2c11fd6
......@@ -477,8 +477,9 @@ void ASTInterpreter::doStore(AST_Name* node, STOLEN(Value) value) {
bool closure = vst == ScopeInfo::VarScopeType::CLOSURE;
if (jit) {
bool is_live = true;
if (!closure)
is_live = source_info->getLiveness()->isLiveAtEnd(name, current_block);
// TODO: turn this optimization back on.
// if (!closure)
// is_live = source_info->getLiveness()->isLiveAtEnd(name, current_block);
if (is_live)
jit->emitSetLocal(name, node->vreg, closure, value);
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment