[llvm] [AArch64] Avoid duplicate hints in AArch64RegisterInfo::getRegAllocationHints (PR #219007)
Nick Desaulniers via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 28 13:04:59 PDT 2026
================
@@ -438,6 +438,8 @@ bool TargetRegisterInfo::getRegAllocationHints(
continue;
// All clear, tell the register allocator to prefer this register.
+ assert(!is_contained(Hints, Phys.id()) &&
+ "TargetRegisterInfo::getRegAllocationHints duplicate hint!");
----------------
nickdesaulniers wrote:
Updated this PR, commit message, and PR description. PTAL.
I'll save the interface refactor for a follow up. This PR introduces a TODO I plan to clean up imminently.
https://github.com/llvm/llvm-project/pull/219007
More information about the llvm-commits
mailing list