mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #5327 from ethereum/rematerializerSmall
Add rematerializer to interactive optimizer.
This commit is contained in:
commit
bed0368ffa
@ -121,7 +121,8 @@ public:
|
|||||||
disambiguated = true;
|
disambiguated = true;
|
||||||
}
|
}
|
||||||
cout << "(q)quit/(f)flatten/(c)se/(x)plit/(j)oin/(g)rouper/(h)oister/" << endl;
|
cout << "(q)quit/(f)flatten/(c)se/(x)plit/(j)oin/(g)rouper/(h)oister/" << endl;
|
||||||
cout << " (e)xpr inline/(i)nline/(s)implify/(u)nusedprune/ss(a) transform/(r)edundant assign elim.? ";
|
cout << " (e)xpr inline/(i)nline/(s)implify/(u)nusedprune/ss(a) transform/" << endl;
|
||||||
|
cout << " (r)edundant assign elim./re(m)aterializer? ";
|
||||||
cout.flush();
|
cout.flush();
|
||||||
int option = readStandardInputChar();
|
int option = readStandardInputChar();
|
||||||
cout << ' ' << char(option) << endl;
|
cout << ' ' << char(option) << endl;
|
||||||
@ -165,6 +166,9 @@ public:
|
|||||||
case 'r':
|
case 'r':
|
||||||
RedundantAssignEliminator::run(*m_ast);
|
RedundantAssignEliminator::run(*m_ast);
|
||||||
break;
|
break;
|
||||||
|
case 'm':
|
||||||
|
Rematerialiser{}(*m_ast);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
cout << "Unknown option." << endl;
|
cout << "Unknown option." << endl;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user