[llvm] [AMDGPU][True16][CodeGen] stop emitting spgr_lo16 from isel (PR #144819)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 26 04:59:14 PDT 2025
================
@@ -1088,7 +1088,7 @@ void SIFixSGPRCopies::lowerVGPR2SGPRCopies(MachineFunction &MF) {
assert(MF.getSubtarget<GCNSubtarget>().useRealTrue16Insts() &&
"We do not expect to see 16-bit copies from VGPR to SGPR unless "
"we have 16-bit VGPRs");
- assert(MRI->getRegClass(DstReg) == &AMDGPU::SGPR_LO16RegClass ||
+ assert(MRI->getRegClass(DstReg) == &AMDGPU::SGPR_32RegClass ||
----------------
jayfoad wrote:
Do you actually need to accept SGPR_32RegClass here, since you changed getSGPRClassForBitWidth to return SReg_32RegClass?
https://github.com/llvm/llvm-project/pull/144819
More information about the llvm-commits
mailing list