[llvm] [CodeGen] Avoid ambiguous Register comparison in C++20; NFC (PR #205814)

Orlando Cazalet-Hyams via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 26 03:22:47 PDT 2026


https://github.com/OCHyams commented:

I wonder if there's a reason `ForwardedRegWorklist` uses uint64_t for the register rather than just `Register`... it seems like that would probably be a reasonable solution. The type was changed from unsigned to uint64_t in https://github.com/llvm/llvm-project/pull/109494, but I'm a little confused because AFAICT that PR is accounting for larger Dwarf register numbers, but `ForwardedRegWorklist` works on (machine) register numbers rather than Dwarf register numbers. I could be missing something though - perhaps @willghatch could weigh in

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


More information about the llvm-commits mailing list