[ExportVerilog] Allow ArraySlices to be emitted inline

New ArraySlice Verilog syntax only uses the idx operator once.
This commit is contained in:
John Demme 2021-01-09 18:07:54 -08:00
parent 99e47c7bdc
commit ad023e876b
1 changed files with 1 additions and 5 deletions

View File

@ -1612,10 +1612,6 @@ static bool isExpressionUnableToInline(Operation *op) {
!isOkToBitSelectFrom(op->getResult(0)))
return true;
}
// ArraySliceOp uses its operand twice, so we want to assign it first then
// use that variable in the ArraySliceOp expression.
if (isa<ArraySliceOp>(user))
return true;
}
return false;
}
@ -1980,4 +1976,4 @@ void circt::registerToVerilogTranslation() {
"emit-verilog", exportVerilog, [](DialectRegistry &registry) {
registry.insert<RTLDialect, SVDialect>();
});
}
}