RAGreedy: Keep track of allocated PhysRegs internally
authorMatthias Braun <matze@braunis.de>
Tue, 14 Jul 2015 17:38:17 +0000 (17:38 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 14 Jul 2015 17:38:17 +0000 (17:38 +0000)
commit65a4053af88af28eaf5c620efb7718adfb47a5ef
tree9775e4ccbcce033ee1e5e16430d569bb465c3cfe
parent582194d3b8e68b8b9c2c1c4f5fe76225280a7abe
RAGreedy: Keep track of allocated PhysRegs internally

Do not use MachineRegisterInfo::setPhysRegUsed()/isPhysRegUsed()
anymore. This bitset changes function-global state and is set by the
VirtRegRewriter anyway.
Simply use a bitvector private to RAGreedy.

Differential Revision: http://reviews.llvm.org/D10910

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242169 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveIntervalUnion.h
include/llvm/CodeGen/LiveRegMatrix.h
lib/CodeGen/LiveRegMatrix.cpp
lib/CodeGen/RegAllocGreedy.cpp