mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disable optimizeStackAllocation when --no-optimize-yul is used for consistency with StandardCompiler
This commit is contained in:
parent
477b621f2e
commit
ce76472d49
@ -13,6 +13,7 @@ Compiler Features:
|
|||||||
|
|
||||||
|
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
* Commandline Interface: ``--no-optimize-yul`` would not disable optimized stack allocation (unlike setting ``settings.optimizer.details.yul`` to ``false`` in Standard JSON).
|
||||||
* Commandline Interface: It is no longer possible to specify both ``--optimize-yul`` and ``--no-optimize-yul`` at the same time.
|
* Commandline Interface: It is no longer possible to specify both ``--optimize-yul`` and ``--no-optimize-yul`` at the same time.
|
||||||
* SMTChecker: Fix encoding of side-effects inside ``if`` and ``ternary conditional``statements in the BMC engine.
|
* SMTChecker: Fix encoding of side-effects inside ``if`` and ``ternary conditional``statements in the BMC engine.
|
||||||
|
|
||||||
|
@ -265,6 +265,7 @@ OptimiserSettings CommandLineOptions::optimiserSettings() const
|
|||||||
|
|
||||||
if (optimizer.noOptimizeYul)
|
if (optimizer.noOptimizeYul)
|
||||||
settings.runYulOptimiser = false;
|
settings.runYulOptimiser = false;
|
||||||
|
settings.optimizeStackAllocation = settings.runYulOptimiser;
|
||||||
|
|
||||||
if (optimizer.expectedExecutionsPerDeployment.has_value())
|
if (optimizer.expectedExecutionsPerDeployment.has_value())
|
||||||
settings.expectedExecutionsPerDeployment = optimizer.expectedExecutionsPerDeployment.value();
|
settings.expectedExecutionsPerDeployment = optimizer.expectedExecutionsPerDeployment.value();
|
||||||
|
Loading…
Reference in New Issue
Block a user