diff options
author | chriseth <chris@ethereum.org> | 2017-07-01 23:53:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-01 23:53:01 +0800 |
commit | dd9416be29e9ac22b9b2a33cb9424514067cc6bf (patch) | |
tree | 3478f1e1080388a5320835652528cad88254da05 /libevmasm/Instruction.cpp | |
parent | 0446893bce2bbf97654459cc4153f91a4d959643 (diff) | |
parent | 0fa2feb3411dd254132ad17a6a8e428551ae3613 (diff) | |
download | dexon-solidity-dd9416be29e9ac22b9b2a33cb9424514067cc6bf.tar dexon-solidity-dd9416be29e9ac22b9b2a33cb9424514067cc6bf.tar.gz dexon-solidity-dd9416be29e9ac22b9b2a33cb9424514067cc6bf.tar.bz2 dexon-solidity-dd9416be29e9ac22b9b2a33cb9424514067cc6bf.tar.lz dexon-solidity-dd9416be29e9ac22b9b2a33cb9424514067cc6bf.tar.xz dexon-solidity-dd9416be29e9ac22b9b2a33cb9424514067cc6bf.tar.zst dexon-solidity-dd9416be29e9ac22b9b2a33cb9424514067cc6bf.zip |
Merge pull request #2481 from ethereum/mload-optim
MLOAD has side-effects, treat it like that in the optimiser
Diffstat (limited to 'libevmasm/Instruction.cpp')
-rw-r--r-- | libevmasm/Instruction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libevmasm/Instruction.cpp b/libevmasm/Instruction.cpp index 8feb733a..b38981d2 100644 --- a/libevmasm/Instruction.cpp +++ b/libevmasm/Instruction.cpp @@ -216,7 +216,7 @@ static const std::map<Instruction, InstructionInfo> c_instructionInfo = { Instruction::DIFFICULTY, { "DIFFICULTY", 0, 0, 1, false, Tier::Base } }, { Instruction::GASLIMIT, { "GASLIMIT", 0, 0, 1, false, Tier::Base } }, { Instruction::POP, { "POP", 0, 1, 0, false, Tier::Base } }, - { Instruction::MLOAD, { "MLOAD", 0, 1, 1, false, Tier::VeryLow } }, + { Instruction::MLOAD, { "MLOAD", 0, 1, 1, true, Tier::VeryLow } }, { Instruction::MSTORE, { "MSTORE", 0, 2, 0, true, Tier::VeryLow } }, { Instruction::MSTORE8, { "MSTORE8", 0, 2, 0, true, Tier::VeryLow } }, { Instruction::SLOAD, { "SLOAD", 0, 1, 1, false, Tier::Special } }, |