[reduce] Move constant repl and op fwd down in the pipeline

Run the connect invalidation before constant replacement of operations,
and constant replacement before any operand forwarding. This ensures
that the reductions that are likely to have the highest payoff run
first.
This commit is contained in:
Fabian Schuiki 2021-11-11 16:09:50 +01:00
parent 858d40620d
commit fcde40deaf
No known key found for this signature in database
GPG Key ID: C42F5825FC5275E6
1 changed files with 2 additions and 2 deletions

View File

@ -498,11 +498,11 @@ void circt::createAllReductions(
add(std::make_unique<MemoryStubber>());
add(std::make_unique<ModuleExternalizer>());
add(std::make_unique<PassReduction>(context, createCSEPass()));
add(std::make_unique<ConnectInvalidator>());
add(std::make_unique<Constantifier>());
add(std::make_unique<OperandForwarder<0>>());
add(std::make_unique<OperandForwarder<1>>());
add(std::make_unique<OperandForwarder<2>>());
add(std::make_unique<Constantifier>());
add(std::make_unique<ConnectInvalidator>());
add(std::make_unique<OperationPruner>());
add(std::make_unique<RootPortPruner>());
add(std::make_unique<ExtmoduleInstanceRemover>());