[llvm-branch-commits] [llvm] [AMDGPU][SIInstrInfo] Materialise t16 PHI subreg operands (PR #222155)

Zach Goldthorpe via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Oct 30 10:53:52 PDT 2026


================
@@ -8173,8 +8171,26 @@ void SIInstrInfo::legalizeOperandsVALUt16(MachineInstr &MI, unsigned OpIdx,
   if (!RI.isVGPRClass(CurrRC))
     return;
 
-  int16_t RCID = getOpRegClassID(get(Opcode).operands()[OpIdx]);
-  const TargetRegisterClass *ExpectedRC = RI.getRegClass(RCID);
+  const TargetRegisterClass *ExpectedRC = [&]() -> const TargetRegisterClass * {
----------------
zGoldthorpe wrote:

Fixed

https://github.com/llvm/llvm-project/pull/222155


More information about the llvm-branch-commits mailing list