diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-02-27 03:04:06 +0000 | 
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-02-27 03:04:06 +0000 | 
| commit | 6d56368cafb5e277842e22247eae8ecc563cb630 (patch) | |
| tree | 907d4efa34819fed76777a42ef6b1dfb0b3fcfdd /llvm/lib/Target/ARM | |
| parent | 66272a545b899de017d4d7a2dd1f7f734a36e76d (diff) | |
| download | bcm5719-llvm-6d56368cafb5e277842e22247eae8ecc563cb630.tar.gz bcm5719-llvm-6d56368cafb5e277842e22247eae8ecc563cb630.zip  | |
Spiller now remove unused spill slots.
llvm-svn: 47657
Diffstat (limited to 'llvm/lib/Target/ARM')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMRegisterInfo.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMRegisterInfo.cpp b/llvm/lib/Target/ARM/ARMRegisterInfo.cpp index 3be0d7a8f4d..327684993a0 100644 --- a/llvm/lib/Target/ARM/ARMRegisterInfo.cpp +++ b/llvm/lib/Target/ARM/ARMRegisterInfo.cpp @@ -870,6 +870,8 @@ static unsigned estimateStackSize(MachineFunction &MF, MachineFrameInfo *MFI) {      if (FixedOff > Offset) Offset = FixedOff;    }    for (unsigned i = 0, e = FFI->getObjectIndexEnd(); i != e; ++i) { +    if (FFI->isDeadObjectIndex(i)) +      continue;      Offset += FFI->getObjectSize(i);      unsigned Align = FFI->getObjectAlignment(i);      // Adjust to alignment boundary  | 

