[Mlir-commits] [mlir] 28d8c0d - [mlir][nvgpu] Fix -Wunused-variable in NVGPUTransformOps.cpp (NFC)
Jie Fu
llvmlistbot at llvm.org
Tue Aug 8 05:22:34 PDT 2023
Author: Jie Fu
Date: 2023-08-08T20:21:41+08:00
New Revision: 28d8c0d1687ecac3352c4d705f7fd12b9ee5b6d5
URL: https://github.com/llvm/llvm-project/commit/28d8c0d1687ecac3352c4d705f7fd12b9ee5b6d5
DIFF: https://github.com/llvm/llvm-project/commit/28d8c0d1687ecac3352c4d705f7fd12b9ee5b6d5.diff
LOG: [mlir][nvgpu] Fix -Wunused-variable in NVGPUTransformOps.cpp (NFC)
/data/llvm-project/mlir/lib/Dialect/NVGPU/TransformOps/NVGPUTransformOps.cpp:969:16: error: unused variable 'inMemRefType' [-Werror,-Wunused-variable]
MemRefType inMemRefType = inMemRef.getType();
^
1 error generated.
Added:
Modified:
mlir/lib/Dialect/NVGPU/TransformOps/NVGPUTransformOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/NVGPU/TransformOps/NVGPUTransformOps.cpp b/mlir/lib/Dialect/NVGPU/TransformOps/NVGPUTransformOps.cpp
index e99cfb7fddf306..c2194c37fac236 100644
--- a/mlir/lib/Dialect/NVGPU/TransformOps/NVGPUTransformOps.cpp
+++ b/mlir/lib/Dialect/NVGPU/TransformOps/NVGPUTransformOps.cpp
@@ -966,8 +966,7 @@ SmallVector<Operation *> CopyBuilder::rewrite(ArrayRef<Operation *> copyOps) {
auto copyOp = cast<linalg::CopyOp>(op);
auto inMemRef =
cast<TypedValue<MemRefType>>(copyOp.getDpsInputOperand(0)->get());
- MemRefType inMemRefType = inMemRef.getType();
- assert(inMemRefType.getRank() == 2 && "expected in to be a 2D memref");
+ assert(inMemRef.getType().getRank() == 2 && "expected in to be a 2D memref");
// 2. Build global memory descriptor.
TypedValue<nvgpu::TensorMapDescriptorType> globalDesc =
More information about the Mlir-commits
mailing list