[llvm] [AArch64][GlobalISel] Look into array's element (PR #74109)

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 12 06:48:47 PST 2023


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 abaeaf382304e5fe30fe05afd09cec3f7191e484 4f3a4567ffdf94f9b2128bf760bbd1cb786a28a6 -- llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp
``````````

</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 beb4177f13..db6c8ea672 100644
--- a/llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp
+++ b/llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp
@@ -622,7 +622,7 @@ bool AArch64RegisterBankInfo::isLoadFromFPType(const MachineInstr &MI) const {
   if (const GlobalValue *GV = dyn_cast<GlobalValue>(LdVal)) {
     EltTy = GV->getValueType();
     // Look at the first element of the struct to determine its type
-    while (StructType *StructEltTy = dyn_cast<StructType>(EltTy)){
+    while (StructType *StructEltTy = dyn_cast<StructType>(EltTy)) {
       EltTy = StructEltTy->getTypeAtIndex(0U);
     }
     // Look at the first element of the array to determine its type

``````````

</details>


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


More information about the llvm-commits mailing list