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:
5d69937
)
[mlir][gpu] Fix GCC -Wparenthesis warning
author
Christian Sigg
<csigg@google.com>
Tue, 4 Oct 2022 18:56:49 +0000
(20:56 +0200)
committer
Christian Sigg
<csigg@google.com>
Tue, 4 Oct 2022 18:58:02 +0000
(20:58 +0200)
mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
b/mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
index
73a1154
..
26361a3
100644
(file)
--- a/
mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
+++ b/
mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
@@
-344,7
+344,7
@@
static Value deriveStaticUpperBound(Value upperBound,
.getDefiningOp())) {
// Assumptions about the upper bound of minimum computations no longer
// work if multiplied by mixed signs, so abort in this case.
- if (
lhs.value() < 0 != rhs.value() < 0
)
+ if (
(lhs.value() < 0) != (rhs.value() < 0)
)
return {};
return rewriter.create<arith::ConstantIndexOp>(