mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #11296 from ethereum/returnVariableZeroReplacementAddendum
Add test.
This commit is contained in:
commit
277e6005e1
@ -25,7 +25,7 @@
|
||||
#include <libyul/optimiser/DataFlowAnalyzer.h>
|
||||
#include <libyul/optimiser/OptimiserStep.h>
|
||||
|
||||
#include <stack>
|
||||
#include <set>
|
||||
|
||||
namespace solidity::yul
|
||||
{
|
||||
|
@ -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
|
||||
// }
|
||||
// }
|
Loading…
Reference in New Issue
Block a user