aboutsummaryrefslogtreecommitdiff
path: root/mlir
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2023-10-20 03:18:46 -0700
committerMehdi Amini <joker.eph@gmail.com>2024-01-15 20:59:12 -0800
commitb984045d4fbd061c6ddb25beeff9797f78b26e27 (patch)
treeec605414e39b8875075bf0929dac49788aaff2b6 /mlir
parentf6ff7574a6fc979583b8105f0d3f2fac165b6d61 (diff)
downloadllvm-b984045d4fbd061c6ddb25beeff9797f78b26e27.zip
llvm-b984045d4fbd061c6ddb25beeff9797f78b26e27.tar.gz
llvm-b984045d4fbd061c6ddb25beeff9797f78b26e27.tar.bz2
Apply clang-tidy fixes for readability-simplify-boolean-expr in VectorToGPU.cpp (NFC)
Diffstat (limited to 'mlir')
-rw-r--r--mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp b/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
index 56fcf25..abb65bc 100644
--- a/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
+++ b/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
@@ -848,10 +848,8 @@ createNonLdMatrixLoads(RewriterBase &rewriter, vector::TransferReadOp op,
static bool isSharedMemory(MemRefType type) {
auto addressSpace =
dyn_cast_or_null<gpu::AddressSpaceAttr>(type.getMemorySpace());
- if (addressSpace &&
- addressSpace.getValue() == gpu::GPUDialect::getWorkgroupAddressSpace())
- return true;
- return false;
+ return addressSpace &&
+ addressSpace.getValue() == gpu::GPUDialect::getWorkgroupAddressSpace();
}
/// Converts a `vector.transfer_read` operation directly to either a