mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove --optimize-yul flag for soltest
This commit is contained in:
parent
3c0ca57f21
commit
02c5f1f748
@ -94,7 +94,6 @@ CommonOptions::CommonOptions(std::string _caption):
|
|||||||
("evmonepath", po::value<fs::path>(&evmonePath)->default_value(EVMOneEnvOrDefaultPath()), "path to evmone library")
|
("evmonepath", po::value<fs::path>(&evmonePath)->default_value(EVMOneEnvOrDefaultPath()), "path to evmone library")
|
||||||
("no-smt", po::bool_switch(&disableSMT), "disable SMT checker")
|
("no-smt", po::bool_switch(&disableSMT), "disable SMT checker")
|
||||||
("optimize", po::bool_switch(&optimize), "enables optimization")
|
("optimize", po::bool_switch(&optimize), "enables optimization")
|
||||||
("optimize-yul", po::bool_switch(&optimizeYul), "enables Yul optimization")
|
|
||||||
("enforce-via-yul", po::bool_switch(&enforceViaYul), "Enforce compiling all tests via yul to see if additional tests can be activated.")
|
("enforce-via-yul", po::bool_switch(&enforceViaYul), "Enforce compiling all tests via yul to see if additional tests can be activated.")
|
||||||
("abiencoderv2", po::bool_switch(&useABIEncoderV2), "enables abi encoder v2")
|
("abiencoderv2", po::bool_switch(&useABIEncoderV2), "enables abi encoder v2")
|
||||||
("show-messages", po::bool_switch(&showMessages), "enables message output")
|
("show-messages", po::bool_switch(&showMessages), "enables message output")
|
||||||
|
@ -46,7 +46,6 @@ struct CommonOptions: boost::noncopyable
|
|||||||
boost::filesystem::path evmonePath;
|
boost::filesystem::path evmonePath;
|
||||||
boost::filesystem::path testPath;
|
boost::filesystem::path testPath;
|
||||||
bool optimize = false;
|
bool optimize = false;
|
||||||
bool optimizeYul = false;
|
|
||||||
bool enforceViaYul = false;
|
bool enforceViaYul = false;
|
||||||
bool disableSMT = false;
|
bool disableSMT = false;
|
||||||
bool useABIEncoderV2 = false;
|
bool useABIEncoderV2 = false;
|
||||||
|
@ -49,9 +49,7 @@ ExecutionFramework::ExecutionFramework(langutil::EVMVersion _evmVersion):
|
|||||||
m_showMessages(solidity::test::CommonOptions::get().showMessages),
|
m_showMessages(solidity::test::CommonOptions::get().showMessages),
|
||||||
m_evmHost(make_shared<EVMHost>(m_evmVersion))
|
m_evmHost(make_shared<EVMHost>(m_evmVersion))
|
||||||
{
|
{
|
||||||
if (solidity::test::CommonOptions::get().optimizeYul)
|
if (solidity::test::CommonOptions::get().optimize)
|
||||||
m_optimiserSettings = solidity::frontend::OptimiserSettings::full();
|
|
||||||
else if (solidity::test::CommonOptions::get().optimize)
|
|
||||||
m_optimiserSettings = solidity::frontend::OptimiserSettings::standard();
|
m_optimiserSettings = solidity::frontend::OptimiserSettings::standard();
|
||||||
|
|
||||||
reset();
|
reset();
|
||||||
|
@ -100,7 +100,7 @@ BOOST_AUTO_TEST_CASE(string_storage)
|
|||||||
// This is only correct on >=Constantinople.
|
// This is only correct on >=Constantinople.
|
||||||
else if (CommonOptions::get().useABIEncoderV2)
|
else if (CommonOptions::get().useABIEncoderV2)
|
||||||
{
|
{
|
||||||
if (CommonOptions::get().optimizeYul)
|
if (CommonOptions::get().optimize)
|
||||||
{
|
{
|
||||||
// Costs with 0 are cases which cannot be triggered in tests.
|
// Costs with 0 are cases which cannot be triggered in tests.
|
||||||
if (evmVersion < EVMVersion::istanbul())
|
if (evmVersion < EVMVersion::istanbul())
|
||||||
@ -129,7 +129,7 @@ BOOST_AUTO_TEST_CASE(string_storage)
|
|||||||
// This is only correct on >=Constantinople.
|
// This is only correct on >=Constantinople.
|
||||||
else if (CommonOptions::get().useABIEncoderV2)
|
else if (CommonOptions::get().useABIEncoderV2)
|
||||||
{
|
{
|
||||||
if (CommonOptions::get().optimizeYul)
|
if (CommonOptions::get().optimize)
|
||||||
{
|
{
|
||||||
if (evmVersion < EVMVersion::istanbul())
|
if (evmVersion < EVMVersion::istanbul())
|
||||||
CHECK_GAS(0, 21567, 20);
|
CHECK_GAS(0, 21567, 20);
|
||||||
|
Loading…
Reference in New Issue
Block a user