[llvm] [AArch64][GlobalISel] Combine G_CONCAT_VECTORS with Illegal Form (PR #85047)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 23 07:38:38 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 bfd19445c38a2ad6a1def7ee9a1f8ff26a159caf 7c1e994e8e78ef55b75b438d31cbd252803a5993 -- llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h b/llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
index a0b94a91ca..5cba2930fe 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
@@ -450,9 +450,8 @@ public:
       if (isImpDefVRegValWithLookThrough(CurrReg, MRI)) {
         NumUndef++;
         SrcRegs.push_back(CurrReg);
-      }
-      else if (MachineInstr *DefMI = getDefIgnoringCopies(CurrReg, MRI);
-               DefMI->getOpcode() == TargetOpcode::G_BITCAST) {
+      } else if (MachineInstr *DefMI = getDefIgnoringCopies(CurrReg, MRI);
+                 DefMI->getOpcode() == TargetOpcode::G_BITCAST) {
         Register DefSrcReg = DefMI->getOperand(1).getReg();
         LLT DefSrcTy = MRI.getType(DefSrcReg);
 

``````````

</details>


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


More information about the llvm-commits mailing list