Yul Optimizer: reduce switches with const arguments

This commit is contained in:
Mathias Baumann
2019-02-28 15:43:10 +01:00
parent e9543d83c7
commit c686a65876
8 changed files with 118 additions and 1 deletions
@@ -0,0 +1,14 @@
{
let y := 200
switch 1
case 0 { y := 8 }
case 1 { y := 9 }
}
// ----
// structuralSimplifier
// {
// let y := 200
// {
// y := 9
// }
// }