Merge pull request #11296 from ethereum/returnVariableZeroReplacementAddendum

Add test.
This commit is contained in:
chriseth 2021-04-22 17:53:02 +02:00 committed by GitHub
commit 277e6005e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 1 deletions

View File

@ -25,7 +25,7 @@
#include <libyul/optimiser/DataFlowAnalyzer.h>
#include <libyul/optimiser/OptimiserStep.h>
#include <stack>
#include <set>
namespace solidity::yul
{

View File

@ -0,0 +1,20 @@
{
function f() -> x {
let t := 0
x := 1
let a := 0
let b := 1
}
}
// ----
// step: commonSubexpressionEliminator
//
// {
// function f() -> x
// {
// let t := 0
// x := 1
// let a := t
// let b := x
// }
// }