Skip to content

Commit 456e609

Browse files
[mlir][Transforms][NFC] Dialect Conversion: Delete dead code from ConversionValueMapping (#116758)
1 parent 3b162f7 commit 456e609

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

mlir/lib/Transforms/Utils/DialectConversion.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,6 @@ struct ConversionValueMapping {
101101
mapping.map(oldVal, newVal);
102102
}
103103

104-
/// Try to map a value to the one provided. Returns false if a transitive
105-
/// mapping from the new value to the old value already exists, true if the
106-
/// map was updated.
107-
bool tryMap(Value oldVal, Value newVal);
108-
109104
/// Drop the last mapping for the given value.
110105
void erase(Value value) { mapping.erase(value); }
111106

@@ -149,14 +144,6 @@ Value ConversionValueMapping::lookupOrNull(Value from, Type desiredType) const {
149144
return result;
150145
}
151146

152-
bool ConversionValueMapping::tryMap(Value oldVal, Value newVal) {
153-
for (Value it = newVal; it; it = mapping.lookupOrNull(it))
154-
if (it == oldVal)
155-
return false;
156-
map(oldVal, newVal);
157-
return true;
158-
}
159-
160147
//===----------------------------------------------------------------------===//
161148
// Rewriter and Translation State
162149
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)