[llvm] [AMDGPU] Fix getDestEquivalentVGPRClass narrowing AV-class registers (PR #212963)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 30 02:28:57 PDT 2026
================
@@ -9808,7 +9808,7 @@ const TargetRegisterClass *SIInstrInfo::getDestEquivalentVGPRClass(
if (!NewDstRC)
return nullptr;
} else {
- if (RI.isVGPRClass(NewDstRC) || NewDstRC == &AMDGPU::VReg_1RegClass)
+ if (RI.hasVGPRs(NewDstRC) || NewDstRC == &AMDGPU::VReg_1RegClass)
return nullptr;
NewDstRC = RI.getEquivalentVGPRClass(NewDstRC);
----------------
arsenm wrote:
This is losing the AV-ness, that should be preserved
https://github.com/llvm/llvm-project/pull/212963
More information about the llvm-commits
mailing list