Skip to content

Commit 5a85e71

Browse files
committed
Remove value bounds interface for ExpandShapeOp
Signed-off-by: Jorn Tuyls <[email protected]>
1 parent b572d6f commit 5a85e71

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

compiler/src/iree/compiler/ExternalInterfaces/UtilExternalModels.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -400,18 +400,6 @@ struct HoistableLinalgOpInterfaceHelper {
400400
}
401401
};
402402

403-
/// TODO(jtuyls): Remove when added to upstream.
404-
struct ExpandShapeOpValueBoundsInterface
405-
: public ValueBoundsOpInterface::ExternalModel<
406-
ExpandShapeOpValueBoundsInterface, memref::ExpandShapeOp> {
407-
void populateBoundsForShapedValueDim(Operation *op, Value value, int64_t dim,
408-
ValueBoundsConstraintSet &cstr) const {
409-
auto expandOp = cast<memref::ExpandShapeOp>(op);
410-
assert(value == expandOp.getResult() && "invalid value");
411-
cstr.bound(value)[dim] == expandOp.getOutputShape()[dim];
412-
}
413-
};
414-
415403
} // namespace
416404

417405
void registerUtilExternalModels(DialectRegistry &registry) {
@@ -529,11 +517,6 @@ void registerUtilExternalModels(DialectRegistry &registry) {
529517
IREE::Util::AssumeIntOp::attachInterface<
530518
UtilAssumeIntValueBoundsOpInterface>(*context);
531519
});
532-
533-
registry.addExtension(+[](MLIRContext *context,
534-
memref::MemRefDialect *dialect) {
535-
memref::ExpandShapeOp::attachInterface<ExpandShapeOpValueBoundsInterface>(
536-
*context);
537520
});
538521
}
539522

0 commit comments

Comments
 (0)