Revert "[mlir] Add SmallVector sizes"

This reverts commit 83274a0773.

Fixed in a555ca8b3d
This commit is contained in:
Tres Popp 2020-12-22 02:19:31 +01:00
parent 8c85aae6c5
commit 6e2af4d604
1 changed files with 5 additions and 5 deletions

View File

@ -198,8 +198,8 @@ void SwitchOp::build(OpBuilder &builder, OperationState &result, Value value,
ArrayRef<int32_t> caseValues, BlockRange caseDestinations,
ArrayRef<ValueRange> caseOperands,
ArrayRef<int32_t> branchWeights) {
SmallVector<Value, 8> flattenedCaseOperands;
SmallVector<int32_t, 8> caseOperandOffsets;
SmallVector<Value> flattenedCaseOperands;
SmallVector<int32_t> caseOperandOffsets;
int32_t offset = 0;
for (ValueRange operands : caseOperands) {
flattenedCaseOperands.append(operands.begin(), operands.end());
@ -230,8 +230,8 @@ parseSwitchOpCases(OpAsmParser &parser, ElementsAttr &caseValues,
SmallVectorImpl<OpAsmParser::OperandType> &caseOperands,
SmallVectorImpl<Type> &caseOperandTypes,
ElementsAttr &caseOperandOffsets) {
SmallVector<int32_t, 8> values;
SmallVector<int32_t, 8> offsets;
SmallVector<int32_t> values;
SmallVector<int32_t> offsets;
int32_t value, offset = 0;
do {
OptionalParseResult integerParseResult = parser.parseOptionalInteger(value);
@ -243,7 +243,7 @@ parseSwitchOpCases(OpAsmParser &parser, ElementsAttr &caseValues,
values.push_back(value);
Block *destination;
SmallVector<OpAsmParser::OperandType, 8> operands;
SmallVector<OpAsmParser::OperandType> operands;
if (parser.parseColon() || parser.parseSuccessor(destination))
return failure();
if (!parser.parseOptionalLParen()) {