Skip to content

Commit

Permalink
Now that all ARM subtargets use frame index scavenging, the Thumb1 re…
Browse files Browse the repository at this point in the history
…quires*

functions are not needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84587 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Jim Grosbach committed Oct 20, 2009
1 parent 0222a8c commit 8fa4efe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
12 changes: 0 additions & 12 deletions lib/Target/ARM/Thumb1RegisterInfo.cpp
Expand Up @@ -77,18 +77,6 @@ Thumb1RegisterInfo::getPhysicalRegisterRegClass(unsigned Reg, EVT VT) const {
return TargetRegisterInfo::getPhysicalRegisterRegClass(Reg, VT);
}

bool
Thumb1RegisterInfo::requiresRegisterScavenging(const MachineFunction &MF) const {
return true;
}

bool
Thumb1RegisterInfo::requiresFrameIndexScavenging(const MachineFunction &MF)
const {
return true;
}


bool Thumb1RegisterInfo::hasReservedCallFrame(MachineFunction &MF) const {
const MachineFrameInfo *FFI = MF.getFrameInfo();
unsigned CFSize = FFI->getMaxCallFrameSize();
Expand Down
3 changes: 0 additions & 3 deletions lib/Target/ARM/Thumb1RegisterInfo.h
Expand Up @@ -40,9 +40,6 @@ struct Thumb1RegisterInfo : public ARMBaseRegisterInfo {
const TargetRegisterClass *
getPhysicalRegisterRegClass(unsigned Reg, EVT VT = MVT::Other) const;

bool requiresRegisterScavenging(const MachineFunction &MF) const;
bool requiresFrameIndexScavenging(const MachineFunction &MF) const;

bool hasReservedCallFrame(MachineFunction &MF) const;

void eliminateCallFramePseudoInstr(MachineFunction &MF,
Expand Down

0 comments on commit 8fa4efe

Please sign in to comment.