[llvm] [MachineVerifier] Improve checks for G_INSERT_SUBVECTOR. (PR #109209)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 15:19:40 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 644899addd8fd789c93e9a0f0727d37eb1b29c55 236aad5074a77c9dd8810645d1fafb4ec2325bdf --extensions cpp -- llvm/lib/CodeGen/MachineVerifier.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index 042dd5850d..95d4d180a2 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -1750,7 +1750,8 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) {
     uint64_t DstMinLen = DstTy.getElementCount().getKnownMinValue();
     if (Idx >= DstMinLen || Idx + Src1MinLen > DstMinLen) {
       report("Subvector type and index must not cause insert to overrun the "
-             "vector being inserted into", MI);
+             "vector being inserted into",
+             MI);
       break;
     }
 

``````````

</details>


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


More information about the llvm-commits mailing list