[llvm] [AArch64][GISel] Regbank G_BITCAST using src regbank. (PR #191522)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 17 22:58:30 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 -- llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.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/llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp b/llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp
index 2ea5951d1..a48049bb8 100644
--- a/llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp
+++ b/llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp
@@ -915,7 +915,7 @@ AArch64RegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
           DefaultMappingID, 0,
           getCopyMapping(SrcRB->getID(), SrcRB->getID(), Size),
           // We only care about the mapping of the destination.
-          /*NumOperands=*/ 2);
+          /*NumOperands=*/2);
     }
     [[fallthrough]];
   }

``````````

</details>


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


More information about the llvm-commits mailing list