mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Do not hard-code the default 'runs' value as 200 in code that fills out optimizer settings
This commit is contained in:
@@ -146,7 +146,7 @@ public:
|
||||
|
||||
/// Changes the optimiser settings.
|
||||
/// Must be set before parsing.
|
||||
void setOptimiserSettings(bool _optimize, size_t _runs = 200);
|
||||
void setOptimiserSettings(bool _optimize, size_t _runs = OptimiserSettings{}.expectedExecutionsPerDeployment);
|
||||
|
||||
/// Changes the optimiser settings.
|
||||
/// Must be set before parsing.
|
||||
|
||||
@@ -85,7 +85,6 @@ struct OptimiserSettings
|
||||
s.runConstantOptimiser = true;
|
||||
s.runYulOptimiser = true;
|
||||
s.optimizeStackAllocation = true;
|
||||
s.expectedExecutionsPerDeployment = 200;
|
||||
return s;
|
||||
}
|
||||
/// Full optimisations. Currently an alias for standard optimisations.
|
||||
|
||||
Reference in New Issue
Block a user