|
@ -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); |
|
|