[llvm] [ARM] Fix failure to register-allocate CMP_SWAP_64 pseudo-inst (PR #104039)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 15 04:13:08 PDT 2024


================
@@ -1368,6 +1371,40 @@ void RegAllocFastImpl::findAndSortDefOperandIndexes(const MachineInstr &MI) {
   });
 }
 
+/// Compute \ref UseOperandIndexes so it contains the indices of "use" operands
+/// that are to be allocated. Those are ordered in a way that high-priority
+/// classes are allocated first.
+void RegAllocFastImpl::findAndSortUseOperandIndexes(const MachineInstr &MI) {
----------------
arsenm wrote:

I'd expect this function to mirror the def case, and use the size of the classes 

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


More information about the llvm-commits mailing list