diff options
author | chriseth <c@ethdev.com> | 2016-07-29 17:47:26 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-08-01 21:30:21 +0800 |
commit | 93ebaa4822571cd0a83906b4665f34c34d2343f7 (patch) | |
tree | f21ccd12387bdef2982fc375a96b80656ef4d8b1 /libevmasm/Assembly.cpp | |
parent | ac0d1388008ed616ab7b35a5b3a27e7400decd46 (diff) | |
download | dexon-solidity-93ebaa4822571cd0a83906b4665f34c34d2343f7.tar.gz dexon-solidity-93ebaa4822571cd0a83906b4665f34c34d2343f7.tar.zst dexon-solidity-93ebaa4822571cd0a83906b4665f34c34d2343f7.zip |
Reset knowledge in optimizer for path joins.
Diffstat (limited to 'libevmasm/Assembly.cpp')
-rw-r--r-- | libevmasm/Assembly.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp index 7f7e1b9c..2024b1e9 100644 --- a/libevmasm/Assembly.cpp +++ b/libevmasm/Assembly.cpp @@ -322,7 +322,8 @@ Assembly& Assembly::optimise(bool _enable, bool _isCreation, size_t _runs) count++; { - ControlFlowGraph cfg(m_items); + // Control flow graph that resets knowledge at path joins. + ControlFlowGraph cfg(m_items, false); AssemblyItems optimisedItems; for (BasicBlock const& block: cfg.optimisedBlocks()) { |