diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-02-17 19:07:56 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-02-17 19:07:56 +0000 |
commit | a0cf42f2e1bc8534258f6a72e718e78214e00e9f (patch) | |
tree | 32aae39a68b57c249e15f133aa442d26378310dc /llvm/lib/CodeGen/RegAllocFast.cpp | |
parent | 0155f30a9c84c41e27f05141c08888d7b9e84da9 (diff) | |
download | llvm-a0cf42f2e1bc8534258f6a72e718e78214e00e9f.zip llvm-a0cf42f2e1bc8534258f6a72e718e78214e00e9f.tar.gz llvm-a0cf42f2e1bc8534258f6a72e718e78214e00e9f.tar.bz2 |
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.
llvm-svn: 150830
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocFast.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index 4724ca2..6d7b5f4 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/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) |