projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca21499
)
Apply clang-tidy fixes for llvm-else-after-return in GPUToSPIRV.cpp (NFC)
author
Mehdi Amini
<joker.eph@gmail.com>
Tue, 3 Jan 2023 11:12:42 +0000
(11:12 +0000)
committer
Mehdi Amini
<joker.eph@gmail.com>
Wed, 4 Jan 2023 20:57:40 +0000
(20:57 +0000)
mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp
b/mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp
index
86a71ac
..
5ecf510
100644
(file)
--- 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,