[llvm] [AMDGPU][GlobalISel] Guard against use of disallowed sub-registers (PR #188781)

Igor Wodiany via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 03:24:12 PDT 2026


================
@@ -5163,6 +5163,19 @@ static bool isSubRegOf(const SIRegisterInfo &TRI,
          SubReg.getReg() == SuperVec.getReg();
 }
 
+/// Check if given MachineOperand is an SGPR with SubReg hi16.
----------------
IgWod wrote:

I removed verification from this PR and I'll work on it as a separate change and try to remove manual C++ code.

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


More information about the llvm-commits mailing list