Switch most getReservedRegs() clients to the MRI equivalent.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 15 Oct 2012 21:57:41 +0000 (21:57 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 15 Oct 2012 21:57:41 +0000 (21:57 +0000)
commitc30a9af2d78765e1f7c479d7acd1fd1e4b183286
treeee31057ef6c62608e562a43b48a2a78530aee9a3
parent57e310613c8cda5ab050bb132efe848cd5562a5f
Switch most getReservedRegs() clients to the MRI equivalent.

Using the cached bit vector in MRI avoids comstantly allocating and
recomputing the reserved register bit vector.

llvm-svn: 165983
12 files changed:
llvm/include/llvm/CodeGen/LiveVariables.h
llvm/include/llvm/CodeGen/RegisterScavenging.h
llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
llvm/lib/CodeGen/LiveVariables.cpp
llvm/lib/CodeGen/MachineCSE.cpp
llvm/lib/CodeGen/MachineCopyPropagation.cpp
llvm/lib/CodeGen/MachineVerifier.cpp
llvm/lib/CodeGen/PostRASchedulerList.cpp
llvm/lib/CodeGen/RegAllocPBQP.cpp
llvm/lib/CodeGen/RegisterClassInfo.cpp
llvm/lib/CodeGen/RegisterScavenging.cpp
llvm/lib/CodeGen/VirtRegMap.cpp