summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2009-10-08 01:50:26 +0000
committerJim Grosbach <grosbach@apple.com>2009-10-08 01:50:26 +0000
commit534ea5ae328e3f0193c923c5fbe414067b742a24 (patch)
tree75c2579775ea9c447793ab52685d026890400949 /llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp
parentc0615aa17f6c54116b3af1a44b6259b4a2acc234 (diff)
downloadbcm5719-llvm-534ea5ae328e3f0193c923c5fbe414067b742a24.tar.gz
bcm5719-llvm-534ea5ae328e3f0193c923c5fbe414067b742a24.zip
Cleanup up unused R3LiveIn tracking.
llvm-svn: 83522
Diffstat (limited to 'llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp b/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp
index c8a0b15c572..3c896da4c0c 100644
--- a/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp
+++ b/llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp
@@ -671,15 +671,6 @@ void Thumb1RegisterInfo::emitPrologue(MachineFunction &MF) const {
DebugLoc dl = (MBBI != MBB.end() ?
MBBI->getDebugLoc() : DebugLoc::getUnknownLoc());
- // Check if R3 is live in. It might have to be used as a scratch register.
- for (MachineRegisterInfo::livein_iterator I =MF.getRegInfo().livein_begin(),
- E = MF.getRegInfo().livein_end(); I != E; ++I) {
- if (I->first == ARM::R3) {
- AFI->setR3IsLiveIn(true);
- break;
- }
- }
-
// Thumb add/sub sp, imm8 instructions implicitly multiply the offset by 4.
NumBytes = (NumBytes + 3) & ~3;
MFI->setStackSize(NumBytes);
OpenPOWER on IntegriCloud