aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCopyPropagation.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-10-15 21:33:06 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-10-15 21:33:06 +0000
commit57e310613c8cda5ab050bb132efe848cd5562a5f (patch)
treebd26d3c04fbf352c629c733f4a472480f70abff4 /llvm/lib/CodeGen/MachineCopyPropagation.cpp
parent54c7432e2259a35cd3656fc732c4ff187d0dcf6f (diff)
downloadllvm-57e310613c8cda5ab050bb132efe848cd5562a5f.zip
llvm-57e310613c8cda5ab050bb132efe848cd5562a5f.tar.gz
llvm-57e310613c8cda5ab050bb132efe848cd5562a5f.tar.bz2
Freeze the reserved registers as soon as isel is complete.
Also provide an MRI::getReservedRegs() function to access the frozen register set, and isReserved() and isAllocatable() methods to test individual registers. The various implementations of TRI::getReservedRegs() are quite complicated, and many passes need to look at the reserved register set. This patch makes it possible for these passes to use the cached copy in MRI, avoiding a lot of malloc traffic and repeated calculations. llvm-svn: 165982
Diffstat (limited to 'llvm/lib/CodeGen/MachineCopyPropagation.cpp')
0 files changed, 0 insertions, 0 deletions