mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #8151 from ethereum/fixYulOptSetting
Only activate Yul optimizer if ``--optimize`` is given.
This commit is contained in:
commit
3d4a2219a6
@ -12,7 +12,7 @@ Compiler Features:
|
||||
* Yul Optimizer: Apply penalty when trying to rematerialize into loops.
|
||||
|
||||
Bugfixes:
|
||||
|
||||
* Commandline interface: Only activate yul optimizer if ``--optimize`` is given.
|
||||
|
||||
Build System:
|
||||
* Switch to building soljson.js with an embedded base64-encoded wasm binary.
|
||||
|
@ -1113,7 +1113,8 @@ bool CommandLineInterface::processInput()
|
||||
|
||||
OptimiserSettings settings = m_args.count(g_argOptimize) ? OptimiserSettings::standard() : OptimiserSettings::minimal();
|
||||
settings.expectedExecutionsPerDeployment = m_args[g_argOptimizeRuns].as<unsigned>();
|
||||
settings.runYulOptimiser = !m_args.count(g_strNoOptimizeYul);
|
||||
if (m_args.count(g_strNoOptimizeYul))
|
||||
settings.runYulOptimiser = false;
|
||||
settings.optimizeStackAllocation = settings.runYulOptimiser;
|
||||
m_compiler->setOptimiserSettings(settings);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user