mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
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
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user