diff options
| author | Jim Grosbach <grosbach@apple.com> | 2010-08-24 21:19:33 +0000 |
|---|---|---|
| committer | Jim Grosbach <grosbach@apple.com> | 2010-08-24 21:19:33 +0000 |
| commit | 2eedb7949e539ed000ff62a98df9c6e0e4f85f94 (patch) | |
| tree | d83684a413efb4dc153c687a93367d84d29fc3bd /llvm/lib/CodeGen/LocalStackSlotAllocation.cpp | |
| parent | a71ab07e144b1db72f3dcefbb7312f9e96b05223 (diff) | |
| download | bcm5719-llvm-2eedb7949e539ed000ff62a98df9c6e0e4f85f94.tar.gz bcm5719-llvm-2eedb7949e539ed000ff62a98df9c6e0e4f85f94.zip | |
Add ARM heuristic for when to allocate a virtual base register for stack
access. rdar://8277890&7352504
llvm-svn: 111968
Diffstat (limited to 'llvm/lib/CodeGen/LocalStackSlotAllocation.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LocalStackSlotAllocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp b/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp index 3f79593b4ed..8bb802fa167 100644 --- a/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp +++ b/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp @@ -250,7 +250,7 @@ bool LocalStackSlotPass::insertFrameReferenceRegisters(MachineFunction &Fn) { continue; DEBUG(dbgs() << "Considering: " << *MI); - if (TRI->needsFrameBaseReg(MI, i)) { + if (TRI->needsFrameBaseReg(MI, LocalOffsets[FrameIdx])) { unsigned BaseReg = 0; int64_t Offset = 0; int64_t FrameSizeAdjust = StackGrowsDown ? MFI->getLocalFrameSize() |

