diff options
Diffstat (limited to 'test/libyul/yulOptimizerTests/rematerialiser/branches_if.yul')
-rw-r--r-- | test/libyul/yulOptimizerTests/rematerialiser/branches_if.yul | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/libyul/yulOptimizerTests/rematerialiser/branches_if.yul b/test/libyul/yulOptimizerTests/rematerialiser/branches_if.yul new file mode 100644 index 00000000..c148c2f2 --- /dev/null +++ b/test/libyul/yulOptimizerTests/rematerialiser/branches_if.yul @@ -0,0 +1,18 @@ +{ + let a := 1 + let b := 2 + if b { pop(b) b := a } + let c := b +} +// ---- +// rematerialiser +// { +// let a := 1 +// let b := 2 +// if 2 +// { +// pop(2) +// b := 1 +// } +// let c := b +// } |