mirror of https://github.com/llvm/circt.git
[ExportVerilog] Allow ArraySlices to be emitted inline
New ArraySlice Verilog syntax only uses the idx operator once.
This commit is contained in:
parent
99e47c7bdc
commit
ad023e876b
|
@ -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 ®istry) {
|
||||
registry.insert<RTLDialect, SVDialect>();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue