mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Pass "optimize stack allocation" flag down to the stack compressor.
This commit is contained in:
@@ -59,6 +59,7 @@ void OptimiserSuite::run(
|
||||
shared_ptr<Dialect> const& _dialect,
|
||||
Block& _ast,
|
||||
AsmAnalysisInfo const& _analysisInfo,
|
||||
bool _optimizeStackAllocation,
|
||||
set<YulString> const& _externallyUsedIdentifiers
|
||||
)
|
||||
{
|
||||
@@ -185,7 +186,7 @@ void OptimiserSuite::run(
|
||||
UnusedPruner::runUntilStabilised(*_dialect, ast, reservedIdentifiers);
|
||||
|
||||
FunctionGrouper{}(ast);
|
||||
StackCompressor::run(_dialect, ast);
|
||||
solAssert(StackCompressor::run(_dialect, ast, _optimizeStackAllocation), "");
|
||||
BlockFlattener{}(ast);
|
||||
|
||||
VarNameCleaner{ast, *_dialect, reservedIdentifiers}(ast);
|
||||
|
||||
Reference in New Issue
Block a user