mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix inliner heuristics.
This commit is contained in:
parent
86e1e4a2dd
commit
d5281877cc
@ -183,7 +183,7 @@ bool Inliner::shouldInlineFullFunctionBody(size_t _tag, ranges::span<AssemblyIte
|
|||||||
// the heuristics is optimistic.
|
// the heuristics is optimistic.
|
||||||
if (m_tagsReferencedFromOutside.count(_tag))
|
if (m_tagsReferencedFromOutside.count(_tag))
|
||||||
inlinedDepositCost += GasMeter::dataGas(
|
inlinedDepositCost += GasMeter::dataGas(
|
||||||
uninlinedFunctionPattern.size() + functionBodySize,
|
codeSize(uninlinedFunctionPattern) + functionBodySize,
|
||||||
m_isCreation,
|
m_isCreation,
|
||||||
m_evmVersion
|
m_evmVersion
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user