mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
turned on stack optimization by default in jit compiler
This commit is contained in:
parent
664de37772
commit
4c9fed9623
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue