Skip to content

Commit

Permalink
Move the specialize options pass next to specialize layers
Browse files Browse the repository at this point in the history
  • Loading branch information
prithayan committed Dec 4, 2024
1 parent 04ac4e1 commit 9d3c60a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Firtool/Firtool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ LogicalResult firtool::populateCHIRRTLToLowFIRRTL(mlir::PassManager &pm,
const FirtoolOptions &opt,
StringRef inputFilename) {

pm.nest<firrtl::CircuitOp>().addPass(firrtl::createSpecializeOptionPass());
pm.nest<firrtl::CircuitOp>().addPass(firrtl::createLowerSignaturesPass());

pm.nest<firrtl::CircuitOp>().addPass(firrtl::createInjectDUTHierarchyPass());
Expand Down Expand Up @@ -135,6 +134,7 @@ LogicalResult firtool::populateCHIRRTLToLowFIRRTL(mlir::PassManager &pm,

// Must run this pass after all diagnostic passes have run, otherwise it can
// hide errors.
pm.addNestedPass<firrtl::CircuitOp>(firrtl::createSpecializeOptionPass());
pm.addNestedPass<firrtl::CircuitOp>(firrtl::createSpecializeLayersPass());

// Run after inference, layer specialization.
Expand Down

0 comments on commit 9d3c60a

Please sign in to comment.