[llvm] [GlobalISel] Combine into abd[su] and legalize abd[su] (PR #118865)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 5 12:13:03 PST 2024


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 fdb90cef75cad0f46f06f1316eaf39358773b468 cbda0d749d78057484248123000320440b283ada --extensions h,cpp -- llvm/lib/CodeGen/GlobalISel/CombinerHelperSelect.cpp llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp llvm/lib/CodeGen/GlobalISel/CombinerHelperCasts.cpp llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h b/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
index e2b63f1f17..ca8184b60b 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
@@ -943,12 +943,10 @@ public:
   bool matchSuboCarryOut(const MachineInstr &MI, BuildFnTy &MatchInfo);
 
   // trunc(abs(sext(x) - sext(y))) -> abds(x, y)
-  bool matchTruncAbds(const MachineInstr &MI,
-                      BuildFnTy &MatchInfo);
+  bool matchTruncAbds(const MachineInstr &MI, BuildFnTy &MatchInfo);
 
   // trunc(abs(zext(x) - zext(y))) -> abdu(x, y)
-  bool matchTruncAbdu(const MachineInstr &MI,
-                      BuildFnTy &MatchInfo);
+  bool matchTruncAbdu(const MachineInstr &MI, BuildFnTy &MatchInfo);
 
   // select(slt(lhs,rhs),sub(rhs,lhs),sub(lhs,rhs)) -> abds(lhs, rhs)
   bool matchSelectAbds(const MachineInstr &MI, BuildFnTy &MatchInfo);

``````````

</details>


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


More information about the llvm-commits mailing list