File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -51,15 +51,6 @@ static inline bool isBroadcastOp(Operation *op) {
51
51
return isa_and_nonnull<vector::BroadcastOp>(op);
52
52
}
53
53
54
- static inline bool isProducerOp (Operation *op) {
55
- return isa<affine::AffineApplyOp>(op);
56
- }
57
-
58
- static inline bool isCandidateMoveOperations (Operation *op) {
59
- return isa<tensor::ExtractSliceOp, tensor::InsertSliceOp, tensor::EmptyOp>(
60
- op);
61
- }
62
-
63
54
static inline bool isReadOrWriteOperation (Operation *op) {
64
55
return isa<vector::TransferReadOp, vector::TransferWriteOp>(op);
65
56
}
@@ -100,16 +91,14 @@ bool hasDynamicShape(Operation *op) {
100
91
// Check operands data type.
101
92
if (llvm::any_of (op->getOperands (), [&isDynamicShapedType](Value x) {
102
93
return isDynamicShapedType (x);
103
- })) {
94
+ }))
104
95
return true ;
105
- }
106
96
107
97
// Check results data type.
108
98
if (llvm::any_of (op->getResults (), [&isDynamicShapedType](OpResult x) {
109
99
return isDynamicShapedType (x);
110
- })) {
100
+ }))
111
101
return true ;
112
- }
113
102
114
103
return false ;
115
104
}
You can’t perform that action at this time.
0 commit comments