[Mlir-commits] [mlir] [TOSA] Fix negate maxValue computation (PR #126295)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Feb 7 11:41:53 PST 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 5566bfa51e9baea0fdcd332198408f8cba39c0d0 58e7545e40e9bd1b10849e5172687fa8e12c3e55 --extensions cpp -- mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp b/mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
index de6a156ed3..0246d90193 100644
--- a/mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
+++ b/mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
@@ -149,8 +149,10 @@ static Value createLinalgBodyCalculationForElementwiseOp(
auto inputZpAttr = cast<tosa::NegateOp>(op).getInput1ZpAttr();
auto outputZpAttr = cast<tosa::NegateOp>(op).getOutputZpAttr();
- const int64_t inZp = inputZpAttr ? inputZpAttr.getValue().getSExtValue() : 0;
- const int64_t outZp = outputZpAttr ? outputZpAttr.getValue().getSExtValue() : 0;
+ const int64_t inZp =
+ inputZpAttr ? inputZpAttr.getValue().getSExtValue() : 0;
+ const int64_t outZp =
+ outputZpAttr ? outputZpAttr.getValue().getSExtValue() : 0;
if (!inZp && !outZp) {
auto constant = rewriter.create<arith::ConstantOp>(
``````````
</details>
https://github.com/llvm/llvm-project/pull/126295
More information about the Mlir-commits
mailing list