[llvm] CodeGen: Eliminate dynamic relocations in the register superclass tables. (PR #119122)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 10 05:04:45 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)
----------------
jayfoad wrote:
I don't see how this would work now. Check `superclasses().empty()` instead?
https://github.com/llvm/llvm-project/pull/119122
More information about the llvm-commits
mailing list