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 | 3197380143cdc18837722129ac888528b9fbfc2b (patch) | |
tree | 9b488b8f8f10450381aeabc736a4cba6e43ebb14 /lib/CodeGen/LocalStackSlotAllocation.cpp | |
parent | 6d8f1a9a18f07ec099d6f6e9e8e9376e6885c8ea (diff) | |
download | external_llvm-3197380143cdc18837722129ac888528b9fbfc2b.zip external_llvm-3197380143cdc18837722129ac888528b9fbfc2b.tar.gz external_llvm-3197380143cdc18837722129ac888528b9fbfc2b.tar.bz2 |
Add ARM heuristic for when to allocate a virtual base register for stack
access. rdar://8277890&7352504
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111968 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LocalStackSlotAllocation.cpp')
-rw-r--r-- | lib/CodeGen/LocalStackSlotAllocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LocalStackSlotAllocation.cpp b/lib/CodeGen/LocalStackSlotAllocation.cpp index 3f79593..8bb802f 100644 --- a/lib/CodeGen/LocalStackSlotAllocation.cpp +++ b/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() |