Skip to content

Commit d49715c

Browse files
committed
remove unused function
1 parent 705d249 commit d49715c

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

lib/gc/Transforms/CPUPhysicalRegisterPass.cpp

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,6 @@ static inline bool isBroadcastOp(Operation *op) {
5151
return isa_and_nonnull<vector::BroadcastOp>(op);
5252
}
5353

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-
6354
static inline bool isReadOrWriteOperation(Operation *op) {
6455
return isa<vector::TransferReadOp, vector::TransferWriteOp>(op);
6556
}
@@ -100,16 +91,14 @@ bool hasDynamicShape(Operation *op) {
10091
// Check operands data type.
10192
if (llvm::any_of(op->getOperands(), [&isDynamicShapedType](Value x) {
10293
return isDynamicShapedType(x);
103-
})) {
94+
}))
10495
return true;
105-
}
10696

10797
// Check results data type.
10898
if (llvm::any_of(op->getResults(), [&isDynamicShapedType](OpResult x) {
10999
return isDynamicShapedType(x);
110-
})) {
100+
}))
111101
return true;
112-
}
113102

114103
return false;
115104
}

0 commit comments

Comments
 (0)