diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-10-15 21:33:06 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-10-15 21:33:06 +0000 |
commit | 57e310613c8cda5ab050bb132efe848cd5562a5f (patch) | |
tree | bd26d3c04fbf352c629c733f4a472480f70abff4 /llvm/lib/CodeGen/MachineCopyPropagation.cpp | |
parent | 54c7432e2259a35cd3656fc732c4ff187d0dcf6f (diff) | |
download | llvm-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