mirror of https://github.com/llvm/circt.git
[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:
parent
858d40620d
commit
fcde40deaf
|
@ -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>());
|
||||
|
|
Loading…
Reference in New Issue