summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocFast.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-02-17 19:07:56 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-02-17 19:07:56 +0000
commitd9f0ff56a1878347fe5a0f162ef8c2ef2b63aeb5 (patch)
tree75dda73c9862f8c73eb74083958cc2e11be718f3 /lib/CodeGen/RegAllocFast.cpp
parentdbe266be35cfee0fbda5523ac578fef81e8fdfcc (diff)
downloadllvm-d9f0ff56a1878347fe5a0f162ef8c2ef2b63aeb5.tar.gz
llvm-d9f0ff56a1878347fe5a0f162ef8c2ef2b63aeb5.tar.bz2
llvm-d9f0ff56a1878347fe5a0f162ef8c2ef2b63aeb5.tar.xz
Transfer regmasks to MRI.
MRI keeps track of which physregs have been used. Make sure it gets updated with all the regmask-clobbered registers. Delete the closePhysRegsUsed() function which isn't necessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150830 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocFast.cpp')
-rw-r--r--lib/CodeGen/RegAllocFast.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/CodeGen/RegAllocFast.cpp b/lib/CodeGen/RegAllocFast.cpp
index 4724ca2f92..6d7b5f4b65 100644
--- a/lib/CodeGen/RegAllocFast.cpp
+++ b/lib/CodeGen/RegAllocFast.cpp
@@ -1097,9 +1097,6 @@ bool RAFast::runOnMachineFunction(MachineFunction &Fn) {
AllocateBasicBlock();
}
- // Make sure the set of used physregs is closed under subreg operations.
- MRI->closePhysRegsUsed(*TRI);
-
// Add the clobber lists for all the instructions we skipped earlier.
for (SmallPtrSet<const MCInstrDesc*, 4>::const_iterator
I = SkippedInstrs.begin(), E = SkippedInstrs.end(); I != E; ++I)