[Mlir-commits] [mlir] 9f91b72 - Apply clang-tidy fixes for llvm-else-after-return in GPUToSPIRV.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Wed Jan 4 12:57:54 PST 2023
Author: Mehdi Amini
Date: 2023-01-04T20:57:40Z
New Revision: 9f91b72dcc2968ba4d027e1217e4236f3a95f348
URL: https://github.com/llvm/llvm-project/commit/9f91b72dcc2968ba4d027e1217e4236f3a95f348
DIFF: https://github.com/llvm/llvm-project/commit/9f91b72dcc2968ba4d027e1217e4236f3a95f348.diff
LOG: Apply clang-tidy fixes for llvm-else-after-return in GPUToSPIRV.cpp (NFC)
Added:
Modified:
mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp b/mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp
index 86a71ac417255..5ecf510bb8d57 100644
--- a/mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp
+++ b/mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp
@@ -442,10 +442,9 @@ static Value createGroupReduceOpImpl(OpBuilder &builder, Location loc,
if (isUniform) {
return builder.create<UniformOp>(loc, type, scope, groupOp, arg)
.getResult();
- } else {
- return builder.create<NonUniformOp>(loc, type, scope, groupOp, arg, Value{})
- .getResult();
}
+ return builder.create<NonUniformOp>(loc, type, scope, groupOp, arg, Value{})
+ .getResult();
}
static llvm::Optional<Value> createGroupReduceOp(OpBuilder &builder,
More information about the Mlir-commits
mailing list