Skip to content

Commit

Permalink
Fix inliner heuristics.
Browse files Browse the repository at this point in the history
  • Loading branch information
ekpyron committed Mar 15, 2021
1 parent 86e1e4a commit d528187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libevmasm/Inliner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ bool Inliner::shouldInlineFullFunctionBody(size_t _tag, ranges::span<AssemblyIte
// the heuristics is optimistic.
if (m_tagsReferencedFromOutside.count(_tag))
inlinedDepositCost += GasMeter::dataGas(
uninlinedFunctionPattern.size() + functionBodySize,
codeSize(uninlinedFunctionPattern) + functionBodySize,
m_isCreation,
m_evmVersion
);
Expand Down

0 comments on commit d528187

Please sign in to comment.