We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dfe0f6 commit 592e589Copy full SHA for 592e589
libevmasm/Assembly.cpp
@@ -883,11 +883,14 @@ std::map<u256, u256> const& Assembly::optimiseInternal(
883
}.optimise();
884
}
885
886
- for (auto& codeSection: m_codeSections)
+ if (_settings.runInliner && !m_eofVersion.has_value())
887
{
888
- TrivialBlockRemover trivialBlockRemover{codeSection.items};
889
- if (trivialBlockRemover.optimise(_tagsReferencedFromOutside))
890
- count++;
+ for (auto& codeSection: m_codeSections)
+ {
+ TrivialBlockRemover trivialBlockRemover{codeSection.items};
891
+ if (trivialBlockRemover.optimise(_tagsReferencedFromOutside))
892
+ count++;
893
+ }
894
895
896
// TODO: verify this for EOF.
0 commit comments