Use rematerializer if variable is unreferenced or value is "cheap".

This commit is contained in:
chriseth
2019-01-07 14:03:32 +01:00
parent aca9e58145
commit 2e9c70add0
23 changed files with 261 additions and 127 deletions
@@ -9,15 +9,10 @@
// Assembly:
// /* "source":38:39 */
// 0x00
// /* "source":109:110 */
// dup1
// /* "source":38:39 */
// dup2
// 0x00
// /* "source":25:40 */
// calldataload
// /* "source":91:111 */
// sstore
// /* "source":12:113 */
// pop
// Bytecode: 60008081355550
// Opcodes: PUSH1 0x0 DUP1 DUP2 CALLDATALOAD SSTORE POP
// Bytecode: 600060003555
// Opcodes: PUSH1 0x0 PUSH1 0x0 CALLDATALOAD SSTORE