[llvm] [CombinerHelper]: Use undef for handling divisors of one (PR #89784)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 23 08:56:17 PDT 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 c1086532d4d5c0a261457dfb00e79fcb764e3d78 b6853a4bc705ec5d8cc156f1d683ef00378dd68b -- llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
index bf4396a803..7349f8a102 100644
--- a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
@@ -5160,7 +5160,7 @@ MachineInstr *CombinerHelper::buildUDivUsingMul(MachineInstr &MI) {
Q = MIB.buildAdd(Ty, NPQ, Q).getReg(0);
}
-
+
if (PostShift)
Q = MIB.buildLShr(Ty, Q, PostShift).getReg(0);
auto One = MIB.buildConstant(Ty, 1);
``````````
</details>
https://github.com/llvm/llvm-project/pull/89784
More information about the llvm-commits
mailing list