mirror of https://github.com/llvm/circt.git
[hlstool] Run canonicalizer after HandshakeToHW
This commit is contained in:
parent
cd3d1a2285
commit
f97396f9bb
|
@ -335,9 +335,10 @@ doHLSFlowDynamic(PassManager &pm, ModuleOp module,
|
|||
});
|
||||
} else {
|
||||
// HW path.
|
||||
addIRLevel(HLSFlowDynamicIRLevel::Firrtl,
|
||||
[&]() { pm.addPass(circt::createHandshakeToHWPass()); });
|
||||
|
||||
addIRLevel(HLSFlowDynamicIRLevel::Firrtl, [&]() {
|
||||
pm.addPass(circt::createHandshakeToHWPass());
|
||||
pm.nest<handshake::FuncOp>().addPass(createSimpleCanonicalizerPass());
|
||||
});
|
||||
addIRLevel(HLSFlowDynamicIRLevel::Rtl,
|
||||
[&]() { loadESILoweringPipeline(pm); });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue