mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Flatten more.
This commit is contained in:
parent
3d1ca07e9b
commit
e8a2d57075
22
test/libyul/yulOptimizerTests/blockFlattener/switch_stmt.yul
Normal file
22
test/libyul/yulOptimizerTests/blockFlattener/switch_stmt.yul
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
let a := 1
|
||||
switch calldataload(0)
|
||||
case 0 { { { mstore(0, 1) } } a := 8 }
|
||||
default { a := 3 { a := 4 } }
|
||||
a := 5
|
||||
}
|
||||
// ----
|
||||
// blockFlattener
|
||||
// {
|
||||
// let a := 1
|
||||
// switch calldataload(0)
|
||||
// case 0 {
|
||||
// mstore(0, 1)
|
||||
// a := 8
|
||||
// }
|
||||
// default {
|
||||
// a := 3
|
||||
// a := 4
|
||||
// }
|
||||
// a := 5
|
||||
// }
|
Loading…
Reference in New Issue
Block a user