diff options
author | Eric Christopher <echristo@gmail.com> | 2019-12-26 18:34:14 -0800 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2019-12-26 18:34:14 -0800 |
commit | 3d18ce71548a84f5ed69585d084964fafda14a82 (patch) | |
tree | ef40f4b2c7826495efcae1d13f4359da9487453d | |
parent | 3009cee75f04fb2bb28fbe7fc33cff3782c0f882 (diff) | |
download | bcm5719-llvm-3d18ce71548a84f5ed69585d084964fafda14a82.tar.gz bcm5719-llvm-3d18ce71548a84f5ed69585d084964fafda14a82.zip |
Remove an unused static function.
-rw-r--r-- | mlir/lib/Dialect/StandardOps/Ops.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/mlir/lib/Dialect/StandardOps/Ops.cpp b/mlir/lib/Dialect/StandardOps/Ops.cpp index 93c501eea56..f4b5e9ac519 100644 --- a/mlir/lib/Dialect/StandardOps/Ops.cpp +++ b/mlir/lib/Dialect/StandardOps/Ops.cpp @@ -2786,21 +2786,6 @@ SubViewOp::getStaticStrides(SmallVectorImpl<int64_t> &staticStrides) { return success(); } -static bool hasConstantOffsetSizesAndStrides(MemRefType memrefType) { - if (memrefType.getNumDynamicDims() > 0) - return false; - // Get offset and strides. - int64_t offset; - SmallVector<int64_t, 4> strides; - if (failed(getStridesAndOffset(memrefType, strides, offset))) - return false; - // Return 'false' if any of offset or strides is dynamic. - if (offset == MemRefType::getDynamicStrideOrOffset() || - llvm::is_contained(strides, MemRefType::getDynamicStrideOrOffset())) - return false; - return true; -} - namespace { /// Pattern to rewrite a subview op with constant size arguments. |