[mlir][gpu] Fix GCC -Wparenthesis warning
authorChristian Sigg <csigg@google.com>
Tue, 4 Oct 2022 18:56:49 +0000 (20:56 +0200)
committerChristian Sigg <csigg@google.com>
Tue, 4 Oct 2022 18:58:02 +0000 (20:58 +0200)
mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp

index 73a1154..26361a3 100644 (file)
@@ -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>(