Skip to content

Commit 2c217b2

Browse files
committed
[MLIR] Fix affine SSA id parser for values with numbers
1 parent 0fa6a67 commit 2c217b2

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

mlir/lib/AsmParser/AffineParser.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,6 @@ AffineExpr AffineParser::parseSSAIdExpr(bool isSymbol) {
311311
if (getToken().isNot(Token::percent_identifier))
312312
return emitWrongTokenError("expected ssa identifier"), nullptr;
313313
auto name = getTokenSpelling();
314-
// Check if we already parsed this SSA id.
315-
for (auto entry : dimsAndSymbols) {
316-
if (entry.first == name) {
317-
consumeToken(Token::percent_identifier);
318-
return entry.second;
319-
}
320-
}
321314
// Parse the SSA id and add an AffineDim/SymbolExpr to represent it.
322315
if (parseElement(isSymbol))
323316
return nullptr;

0 commit comments

Comments
 (0)