Skip to content

Commit

Permalink
Remove an unused static function.
Browse files Browse the repository at this point in the history
  • Loading branch information
echristo committed Dec 27, 2019
1 parent 3009cee commit 3d18ce7
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions mlir/lib/Dialect/StandardOps/Ops.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit 3d18ce7

Please sign in to comment.