Page MenuHomePhabricator

[NFC][CodeGen] Refactor: splitting register allocation method in RegAllocFast
Needs ReviewPublic

Authored by pratlucas on Jun 16 2020, 8:52 AM.

Details

Reviewers
efriedma
arsenm
Summary

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.

Diff Detail