Remove an unused static function.

This commit is contained in:
Eric Christopher 2019-12-26 18:34:14 -08:00
parent 3009cee75f
commit 3d18ce7154
1 changed files with 0 additions and 15 deletions

View File

@ -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.