llvm-project
7ef8e54d - [AMDGPU][NFC] Add a helper to widen a 16-bit VGPR value to 32 bits (#239231)

Commit
1 day ago
[AMDGPU][NFC] Add a helper to widen a 16-bit VGPR value to 32 bits (#239231) Three places in SIInstrInfo and SIFixSGPRCopies build the same sequence to put a 16-bit value into the low half of a 32-bit VGPR: %undef:vgpr_16 = IMPLICIT_DEF %dst:vgpr_32 = REG_SEQUENCE %src.sub, %subreg.lo16, %undef, %subreg.hi16 Move it into SIInstrInfo::buildVGPR32FromLo16(). The source subregister is a parameter, so callers can't silently drop it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Parents
Loading