[Mlir-commits] [mlir] e204b91 - Apply clang-tidy fixes for llvm-else-after-return in GPUToLLVMConversion.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Mon Nov 20 01:41:35 PST 2023
Author: Mehdi Amini
Date: 2023-11-20T01:40:49-08:00
New Revision: e204b9198aebec16f28da79ec00105fceba0d755
URL: https://github.com/llvm/llvm-project/commit/e204b9198aebec16f28da79ec00105fceba0d755
DIFF: https://github.com/llvm/llvm-project/commit/e204b9198aebec16f28da79ec00105fceba0d755.diff
LOG: Apply clang-tidy fixes for llvm-else-after-return in GPUToLLVMConversion.cpp (NFC)
Added:
Modified:
mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp b/mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
index 7bac8f5a8f0e03b..3dd8aae81c5933f 100644
--- a/mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
+++ b/mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
@@ -814,7 +814,7 @@ LogicalResult ConvertAllocOpToGpuRuntimeCallPattern::matchAndRewrite(
if (isShared && allocOp.getAsyncToken())
return rewriter.notifyMatchFailure(
allocOp, "Host Shared allocation cannot be done async");
- else if (!isShared && failed(isAsyncWithOneDependency(rewriter, allocOp)))
+ if (!isShared && failed(isAsyncWithOneDependency(rewriter, allocOp)))
return failure();
// Get shape of the memref as values: static sizes are constant
More information about the Mlir-commits
mailing list