[PATCH] D33814: CodeGen: Fix ARM cmpxchg64 register fragmentation in fast-regalloc
strager via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 1 17:41:02 PDT 2017
strager added a comment.
Let me know if there's a better solution than sorting by size! (Aside from fixing the bug which necessitates CMP_SWAP_64 in the first place...)
================
Comment at: lib/CodeGen/RegAllocFast.cpp:997-1000
+#else
+ // LLVM 4.0.0.
+ return RC.get<const TargetRegisterClass *>()->getSize();
+#endif
----------------
(I know I should delete this before merging. Locally I need to work with LLVM 4.0.0.)
https://reviews.llvm.org/D33814
More information about the llvm-commits
mailing list