[hlstool] Run canonicalizer after HandshakeToHW

This commit is contained in:
Morten Borup Petersen 2022-09-30 12:41:36 +02:00
parent cd3d1a2285
commit f97396f9bb
1 changed files with 4 additions and 3 deletions

View File

@ -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); });
}