[Mlir-commits] [mlir] [mlir][ArithToAMDGPU] Skip tensor scaling ops (PR #207327)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Jul 2 23:13:37 PDT 2026


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 origin/main HEAD --extensions cpp -- mlir/lib/Conversion/ArithToAMDGPU/ArithToAMDGPU.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/Conversion/ArithToAMDGPU/ArithToAMDGPU.cpp b/mlir/lib/Conversion/ArithToAMDGPU/ArithToAMDGPU.cpp
index d61eeaf3d..cf44c2a00 100644
--- a/mlir/lib/Conversion/ArithToAMDGPU/ArithToAMDGPU.cpp
+++ b/mlir/lib/Conversion/ArithToAMDGPU/ArithToAMDGPU.cpp
@@ -465,8 +465,8 @@ ScalingExtFRewritePattern::matchAndRewrite(arith::ScalingExtFOp op,
     return failure();
 
   if (isa<RankedTensorType>(out.getType()) ||
-    isa<RankedTensorType>(in.getType()) ||
-    isa<RankedTensorType>(scale.getType()))
+      isa<RankedTensorType>(in.getType()) ||
+      isa<RankedTensorType>(scale.getType()))
     return failure();
 
   Type scaleF32Type =
@@ -583,8 +583,8 @@ ScalingTruncFRewritePattern::matchAndRewrite(arith::ScalingTruncFOp op,
     return failure();
 
   if (isa<RankedTensorType>(out.getType()) ||
-    isa<RankedTensorType>(in.getType()) ||
-    isa<RankedTensorType>(scale.getType()))
+      isa<RankedTensorType>(in.getType()) ||
+      isa<RankedTensorType>(scale.getType()))
     return failure();
 
   Type scaleF32Type =

``````````

</details>


https://github.com/llvm/llvm-project/pull/207327


More information about the Mlir-commits mailing list