[Mlir-commits] [mlir] b984045 - Apply clang-tidy fixes for readability-simplify-boolean-expr in VectorToGPU.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Mon Jan 15 20:59:25 PST 2024


Author: Mehdi Amini
Date: 2024-01-15T20:59:12-08:00
New Revision: b984045d4fbd061c6ddb25beeff9797f78b26e27

URL: https://github.com/llvm/llvm-project/commit/b984045d4fbd061c6ddb25beeff9797f78b26e27
DIFF: https://github.com/llvm/llvm-project/commit/b984045d4fbd061c6ddb25beeff9797f78b26e27.diff

LOG: Apply clang-tidy fixes for readability-simplify-boolean-expr in VectorToGPU.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp b/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
index 56fcf25c9ddcc3..abb65bc3c38f22 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


        


More information about the Mlir-commits mailing list