Skip to content

Commit 6e9fa41

Browse files
committed
remove deps
1 parent 3d5d0bb commit 6e9fa41

File tree

5 files changed

+4
-61
lines changed

5 files changed

+4
-61
lines changed

compiler/src/iree/compiler/Dialect/Encoding/IR/EncodingAttrs.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,8 @@ EncodingAttr getEncodingAttr(RankedTensorType type) {
283283

284284
bool hasPackedStorageAttr(Type type) {
285285
if (auto tensorType = dyn_cast<RankedTensorType>(type)) {
286-
auto encoding = tensorType.getEncoding();
287-
if (!encoding) {
288-
return false;
289-
}
290-
return dyn_cast_or_null<PackedStorageAttr>(encoding) != nullptr;
286+
return dyn_cast_or_null<PackedStorageAttr>(tensorType.getEncoding()) !=
287+
nullptr;
291288
}
292289
return false;
293290
}

compiler/src/iree/compiler/Dialect/Stream/IR/BUILD.bazel

+1-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ iree_compiler_cc_library(
6464
":StreamInterfacesGen",
6565
":StreamOpsGen",
6666
":StreamTypesGen",
67-
"//compiler/src/iree/compiler/Codegen/Common",
68-
"//compiler/src/iree/compiler/Dialect/Util/IR",
67+
"//compiler/src/iree/compiler/Dialect/Encoding/IR",
6968
"//compiler/src/iree/compiler/Utils",
7069
"@llvm-project//llvm:Support",
7170
"@llvm-project//mlir:ArithDialect",

compiler/src/iree/compiler/Dialect/Stream/IR/CMakeLists.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ iree_cc_library(
5454
MLIRTensorDialect
5555
MLIRTransformUtils
5656
MLIRViewLikeInterface
57-
iree::compiler::Codegen::Common
58-
iree::compiler::Dialect::Util::IR
57+
iree::compiler::Dialect::Encoding::IR
5958
iree::compiler::Utils
6059
PUBLIC
6160
)

compiler/src/iree/compiler/Dialect/Stream/Transforms/test/encode_host_tensors_packing_i1_attr.mlir

-29
This file was deleted.

compiler/src/iree/compiler/Dialect/Stream/Transforms/test/encode_host_tensors_packing_i1_experimental_clopt.mlir

-23
This file was deleted.

0 commit comments

Comments
 (0)