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)
commit953393a72cc0819146d8ada5dc1b84653ecbc73b
treea8be3757caa6f79d690f7862d70e676f88379147
parent4ba525b727a416ad688d0237f9f7e6fd697a3c1f
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

llvm-svn: 242169
llvm/include/llvm/CodeGen/LiveIntervalUnion.h
llvm/include/llvm/CodeGen/LiveRegMatrix.h
llvm/lib/CodeGen/LiveRegMatrix.cpp
llvm/lib/CodeGen/RegAllocGreedy.cpp