Skip to content

Commit 687e831

Browse files
committed
Remove dead code.
1 parent 4aa4cb2 commit 687e831

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

mlir/lib/Conversion/XeGPUToXeVM/XeGPUToXeVM.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,6 @@ static int32_t getNumericXeVMAddrSpace(xegpu::MemorySpace xeGpuMemspace) {
5656
llvm_unreachable("Unknown XeGPU memory space.");
5757
}
5858

59-
template <typename T>
60-
std::tuple<bool, int32_t, int32_t> checkAllLinear(SmallVector<T> denseAttr) {
61-
assert(!denseAttr.empty());
62-
const int32_t intercept{static_cast<int32_t>(denseAttr[0])};
63-
if (denseAttr.size() < 2)
64-
return {true, 0, intercept};
65-
const T slope{denseAttr[1] - denseAttr[0]};
66-
for (size_t i = 1; i < denseAttr.size(); ++i)
67-
if (denseAttr[i] - denseAttr[i - 1] != slope)
68-
return {false, 0, 0};
69-
return {true, static_cast<int32_t>(slope), intercept};
70-
}
71-
7259
VectorType encodeVectorTypeTo(VectorType currentVecType, Type toElemType) {
7360
auto elemType = currentVecType.getElementType();
7461
auto currentBitWidth = elemType.getIntOrFloatBitWidth();

0 commit comments

Comments
 (0)