mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Refactor Optimiser Steps Interface.
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
#include <libyul/optimiser/ControlFlowSimplifier.h>
|
||||
#include <libyul/optimiser/Semantics.h>
|
||||
#include <libyul/optimiser/OptimiserStep.h>
|
||||
#include <libyul/AsmData.h>
|
||||
#include <libyul/Utilities.h>
|
||||
#include <libyul/Dialect.h>
|
||||
@@ -125,6 +126,11 @@ OptionalStatements reduceSingleCaseSwitch(Dialect const& _dialect, Switch& _swit
|
||||
|
||||
}
|
||||
|
||||
void ControlFlowSimplifier::run(OptimiserStepContext& _context, Block& _ast)
|
||||
{
|
||||
ControlFlowSimplifier{_context.dialect}(_ast);
|
||||
}
|
||||
|
||||
void ControlFlowSimplifier::operator()(Block& _block)
|
||||
{
|
||||
simplify(_block.statements);
|
||||
|
||||
Reference in New Issue
Block a user