diff options
author | chriseth <c@ethdev.com> | 2016-08-02 05:13:56 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-08-02 05:41:11 +0800 |
commit | c0afb4549ebecfc5e4ad05e8e24d26d92f4ec64d (patch) | |
tree | b3a7ac61c925ad445489507d3086d982aed29c79 /test | |
parent | fb90e8876f6d1172405890bee694ccc6000b9387 (diff) | |
download | dexon-solidity-c0afb4549ebecfc5e4ad05e8e24d26d92f4ec64d.tar.gz dexon-solidity-c0afb4549ebecfc5e4ad05e8e24d26d92f4ec64d.tar.zst dexon-solidity-c0afb4549ebecfc5e4ad05e8e24d26d92f4ec64d.zip |
Further fixes to the optimizer.
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityOptimizer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityOptimizer.cpp b/test/libsolidity/SolidityOptimizer.cpp index 2e4ed4b3..206f23fb 100644 --- a/test/libsolidity/SolidityOptimizer.cpp +++ b/test/libsolidity/SolidityOptimizer.cpp @@ -282,6 +282,8 @@ BOOST_AUTO_TEST_CASE(storage_write_in_loops) compareVersions("f(uint256)", 36); } +// Test disabled with https://github.com/ethereum/solidity/pull/762 +// Information in joining branches is not retained anymore. BOOST_AUTO_TEST_CASE(retain_information_in_branches) { // This tests that the optimizer knows that we already have "z == sha3(y)" inside both branches. @@ -315,7 +317,8 @@ BOOST_AUTO_TEST_CASE(retain_information_in_branches) if (_instr == Instruction::SHA3) numSHA3s++; }); - BOOST_CHECK_EQUAL(1, numSHA3s); +// TEST DISABLED - OPTIMIZER IS NOT EFFECTIVE ON THIS ONE ANYMORE +// BOOST_CHECK_EQUAL(1, numSHA3s); } BOOST_AUTO_TEST_CASE(store_tags_as_unions) |