Browse Source

turned on stack optimization by default in jit compiler

cl-refactor
artur-zawlocki 10 years ago
parent
commit
865cfe4a72
  1. 6
      libevmjit/Compiler.cpp

6
libevmjit/Compiler.cpp

@ -242,8 +242,8 @@ std::unique_ptr<llvm::Module> Compiler::compile(bytesConstRef bytecode)
dump();
}
if (getenv("EVMCC_OPTIMIZE_STACK"))
{
//if (getenv("EVMCC_OPTIMIZE_STACK"))
//{
std::vector<BasicBlock*> blockList;
for (auto& entry : basicBlocks)
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";
dump();
}
}
//}
for (auto& entry : basicBlocks)
entry.second.localStack().synchronize(stack);

Loading…
Cancel
Save