[llvm] GlobalISel lane masks merging (PR #73337)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 4 07:56:44 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 50c298fd174f1a98fd20374a65d1faecba5649e1 2d7e6f112cad920191031b8b9c64f84455f91d83 -- llvm/lib/Target/AMDGPU/AMDGPUGlobalISelDivergenceLowering.cpp llvm/lib/Target/AMDGPU/SILowerI1Copies.h llvm/include/llvm/CodeGen/MachineSSAUpdater.h llvm/lib/CodeGen/MachineSSAUpdater.cpp llvm/lib/Target/AMDGPU/AMDGPU.h llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp llvm/lib/Target/AMDGPU/SILowerI1Copies.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUGlobalISelDivergenceLowering.cpp b/llvm/lib/Target/AMDGPU/AMDGPUGlobalISelDivergenceLowering.cpp
index 42bb6aa9d0..449b9a20ac 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUGlobalISelDivergenceLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUGlobalISelDivergenceLowering.cpp
@@ -107,7 +107,6 @@ void DivergenceLoweringHelper::getCandidatesForLowering(
         Vreg1Phis.push_back(&MI);
     }
   }
-
 }
 
 void DivergenceLoweringHelper::collectIncomingValuesFromPhi(
@@ -138,7 +137,7 @@ getInsertAfterPtrs(MachineInstr *MI) {
 // bb.current
 // %CurReg = ...
 //
-// %DstReg - not defined 
+// %DstReg - not defined
 //
 // -> (wave32 example, new registers have sreg_32 reg class and S1 LLT)
 //
diff --git a/llvm/lib/Target/AMDGPU/SILowerI1Copies.cpp b/llvm/lib/Target/AMDGPU/SILowerI1Copies.cpp
index 4472d6f2e4..f838ba7a71 100644
--- a/llvm/lib/Target/AMDGPU/SILowerI1Copies.cpp
+++ b/llvm/lib/Target/AMDGPU/SILowerI1Copies.cpp
@@ -412,7 +412,7 @@ FunctionPass *llvm::createSILowerI1CopiesPass() {
 }
 
 Register llvm::createLaneMaskReg(MachineRegisterInfo *MRI,
-                           Register *LaneMaskRegAttrs) {
+                                 Register *LaneMaskRegAttrs) {
   return MRI->cloneVirtualRegister(*LaneMaskRegAttrs);
 }
 

``````````

</details>


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


More information about the llvm-commits mailing list