[llvm] [AMDGPU] Have VCC as a first-class member of the SGPR pool. (PR #173870)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 30 07:30:26 PST 2026
================
@@ -2784,7 +2785,23 @@ ParseStatus AMDGPUAsmParser::tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
bool AMDGPUAsmParser::AddNextRegisterToList(MCRegister &Reg, unsigned &RegWidth,
RegisterKind RegKind,
- MCRegister Reg1, SMLoc Loc) {
+ MCRegister Reg1,
+ RegisterKind RegKind1, SMLoc Loc) {
+ // Allow VCC_LO/HI at the end of SGPR lists.
+ if (RegKind == IS_SGPR) {
+ unsigned RegIdx = (Reg - AMDGPU::SGPR0) + RegWidth / 32;
+ if ((RegIdx == 106 && Reg1 == AMDGPU::VCC_LO) ||
----------------
arsenm wrote:
Were these values always the same? I thought there was an encoding value change at some point (or wait, is this not the encoding value, and is just the index position in the register class?)
https://github.com/llvm/llvm-project/pull/173870
More information about the llvm-commits
mailing list