[llvm] [AMDGPU] Fix illegal AGPR reclassification in RewriteMFMAFormStage (PR #200972)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 1 16:50:04 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/AMDGPU/GCNSchedStrategy.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/AMDGPU/GCNSchedStrategy.cpp b/llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
index 5f1e640d4..71a5a7cc3 100644
--- a/llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
+++ b/llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
@@ -2250,10 +2250,9 @@ void GCNSchedStage::modifyRegionSchedule(unsigned RegionIdx,
/// Returns true when \p RD will already be in AGPR-form after the rewrite, so
/// no bridge copy is needed at this reaching definition.
-static bool isReachingDefAGPRForm(MachineInstr *RD,
- const SmallPtrSetImpl<MachineInstr *> &RewriteSet,
- const DenseSet<Register> &CandSrc2Regs,
- const SIInstrInfo &TII) {
+static bool isReachingDefAGPRForm(
+ MachineInstr *RD, const SmallPtrSetImpl<MachineInstr *> &RewriteSet,
+ const DenseSet<Register> &CandSrc2Regs, const SIInstrInfo &TII) {
if (TII.isMAI(*RD))
return RewriteSet.contains(RD);
if (RD->getOpcode() == AMDGPU::AV_MOV_B32_IMM_PSEUDO ||
``````````
</details>
https://github.com/llvm/llvm-project/pull/200972
More information about the llvm-commits
mailing list