[llvm] CodeGen: Eliminate dynamic relocations in the register superclass tables. (PR #119122)

Owen Anderson via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 14:44:00 PST 2024


================
@@ -431,8 +431,9 @@ unsigned HexagonRegisterInfo::getHexagonSubRegIndex(
       return WSub[GenIdx];
   }
 
-  if (const TargetRegisterClass *SuperRC = *RC.getSuperClasses())
-    return getHexagonSubRegIndex(*SuperRC, GenIdx);
+  unsigned SuperID = *RC.superclasses().begin();
+  if (SuperID != ~0U)
----------------
resistor wrote:

Done. Seems unfortunate that no Hexxagon tests expose this...

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


More information about the llvm-commits mailing list