turned on stack optimization by default in jit compiler

This commit is contained in:
artur-zawlocki 2014-10-29 11:54:02 +00:00
parent 664de37772
commit 4c9fed9623

View file

@ -242,8 +242,8 @@ std::unique_ptr<llvm::Module> Compiler::compile(bytesConstRef bytecode)
dump(); dump();
} }
if (getenv("EVMCC_OPTIMIZE_STACK")) //if (getenv("EVMCC_OPTIMIZE_STACK"))
{ //{
std::vector<BasicBlock*> blockList; std::vector<BasicBlock*> blockList;
for (auto& entry : basicBlocks) for (auto& entry : basicBlocks)
blockList.push_back(&entry.second); blockList.push_back(&entry.second);
@ -261,7 +261,7 @@ std::unique_ptr<llvm::Module> Compiler::compile(bytesConstRef bytecode)
std::cerr << "\n\nAfter stack optimization \n\n"; std::cerr << "\n\nAfter stack optimization \n\n";
dump(); dump();
} }
} //}
for (auto& entry : basicBlocks) for (auto& entry : basicBlocks)
entry.second.localStack().synchronize(stack); entry.second.localStack().synchronize(stack);