[Mips] Return false for isFPCloseToIncomingSP()
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Tue, 12 May 2015 17:14:05 +0000 (17:14 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Tue, 12 May 2015 17:14:05 +0000 (17:14 +0000)
commit2c3514ae0dbd6389939f9861b2f30382c8164711
treef59b9daa6a20ec11414b25891a756bf0c4e93011
parente83e5d460db99fa9ac907d08154ce681b1b08d5b
[Mips] Return false for isFPCloseToIncomingSP()

On Mips, frame pointer points to the same side of the frame as the stack
pointer. This function is used to decide where to put register scavenging
spill slot. So far, it was put on the wrong side of the frame, and thus it
was too far away from $fp when frame was larger than 2^15 bytes.

Patch by Vladimir Radosavljevic.

http://reviews.llvm.org/D8895

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237153 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsFrameLowering.h
test/CodeGen/Mips/emergency-spill-slot-near-fp.ll [new file with mode: 0644]