[PATCH] D81942: [NFC][CodeGen] Refactor: splitting register allocation method in RegAllocFast

Lucas Prates via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 16 09:21:54 PDT 2020


pratlucas created this revision.
Herald added subscribers: llvm-commits, hiraditya, qcolombet, MatzeB.
Herald added a project: LLVM.
pratlucas added reviewers: efriedma, arsenm.
Herald added a subscriber: wdng.
pratlucas added a child revision: D80999: [ARM][CodeGen] Enabling spilling of high registers in RegAllocFast for Thumb1.

The method responsible for allocating a virtual register to a physical
one in RegAllocFast contained the logic for finding which is the best
register in terms of spilling cost, making sure the register is free by
calling the spill methods and update its state and performing the
allocation itself.

This patch splits those resposabilities into separate methods.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81942

Files:
  llvm/lib/CodeGen/RegAllocFast.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81942.271112.patch
Type: text/x-patch
Size: 7758 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200616/31171999/attachment.bin>


More information about the llvm-commits mailing list