[llvm] [NFC][CodeGen] Add helper function to check SubReg validity (PR #181489)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 17 11:17:42 PST 2026


================
@@ -1078,8 +1078,9 @@ const TargetRegisterClass *MachineInstr::getRegClassConstraintEffect(
       CurRC = TRI->getMatchingSuperRegClass(CurRC, OpRC, SubIdx);
     else
       CurRC = TRI->getSubClassWithSubReg(CurRC, SubIdx);
-  } else if (OpRC)
+  } else if (OpRC) {
----------------
jayfoad wrote:

Nit: unrelated cleanup

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


More information about the llvm-commits mailing list