[llvm] true16 codegen madmixpat GISEL (PR #124995)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 29 14:24:11 PST 2025


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 7d172f96ff2c4c7cf5c428b79a3c18e067ce0079 85b43c85c47432a92a72954c47a453d31f972998 --extensions cpp -- llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp b/llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
index 36febe9776..3f51829d76 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
@@ -3651,7 +3651,7 @@ bool AMDGPUDAGToDAGISel::SelectVOP3PMadMixModsImpl(SDValue In, SDValue &Src,
       // TODO: Should we try to look for neg/abs here?
     }
 
-	// Prevent unnecessary subreg COPY to VGPR_16
+    // Prevent unnecessary subreg COPY to VGPR_16
     if (Subtarget->UseRealTrue16Insts() && Src.getOpcode() == ISD::TRUNCATE) {
       Src = Src.getOperand(0);
     }
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
index 969eb5e7b1..aa911fd5f2 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
@@ -5836,7 +5836,7 @@ AMDGPUInstructionSelector::selectVOP3PMadMixModsImpl(MachineOperand &Root,
       CheckAbsNeg();
     }
 
-	// Since we looked through FPEXT and removed it, we must also remove
+    // Since we looked through FPEXT and removed it, we must also remove
     // G_TRUNC. G_TRUNC to 16-bits would have a destination in RC VGPR_16, which
     // is not compatible with MadMix instructions
     if (Subtarget->UseRealTrue16Insts() && MI->getOpcode() == AMDGPU::G_TRUNC) {

``````````

</details>


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


More information about the llvm-commits mailing list