We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent def39e7 commit a967191Copy full SHA for a967191
lib/Conversion/FIRRTLToHW/LowerToHW.cpp
@@ -3828,12 +3828,6 @@ LogicalResult FIRRTLLowering::visitDecl(InstanceOp oldInstance) {
3828
// module.
3829
SmallVector<PortInfo, 8> portInfo = cast<FModuleLike>(oldModule).getPorts();
3830
3831
- // Build an index from the name attribute to an index into portInfo, so we
3832
- // can do efficient lookups.
3833
- llvm::SmallDenseMap<Attribute, unsigned> portIndicesByName;
3834
- for (unsigned portIdx = 0, e = portInfo.size(); portIdx != e; ++portIdx)
3835
- portIndicesByName[portInfo[portIdx].name] = portIdx;
3836
-
3837
// Ok, get ready to create the new instance operation. We need to prepare
3838
// input operands.
3839
SmallVector<Value, 8> operands;
0 commit comments