llvm-project/llvm/test/CodeGen
Francis Visoiu Mistrih f2c22050e8 [AArch64] Use FP to access the emergency spill slot
In the presence of variable-sized stack objects, we always picked the
base pointer when resolving frame indices if it was available.

This makes us hit an assert where we can't reach the emergency spill
slot if it's too far away from the base pointer. Since on AArch64 we
decide to place the emergency spill slot at the top of the frame, it
makes more sense to use FP to access it.

The changes here don't affect only emergency spill slots but all the
frame indices. The goal here is to try to choose between FP, BP and SP
so that we minimize the offset and avoid scavenging, or worse, asserting
when trying to access a slot allocated by the scavenger.

Previously discussed here: https://reviews.llvm.org/D40876.

Differential Revision: https://reviews.llvm.org/D45358

llvm-svn: 329691
2018-04-10 11:29:40 +00:00
..
AArch64 [AArch64] Use FP to access the emergency spill slot 2018-04-10 11:29:40 +00:00
AMDGPU [AMDGPU] For OS type AMDPAL, fixed scratch on compute shader 2018-04-10 11:25:15 +00:00
ARC
ARM [DAGCombine] Improve ReduceLoad for SRL 2018-04-09 08:16:11 +00:00
AVR [AVR] Add a regression test for struct return lowering 2018-03-20 11:23:03 +00:00
BPF bpf: fix incorrect SELECT_CC lowering 2018-04-03 03:56:37 +00:00
Generic Support generic expansion of ordered vector reduction (PR36732) 2018-04-09 15:44:20 +00:00
Hexagon [Hexagon] Handle subregisters when calculating iteration count in HW loops 2018-04-06 17:51:57 +00:00
Inputs
Lanai
MIR [MIR] Add support for MachineFrameInfo::LocalFrameSize 2018-04-06 08:56:25 +00:00
MSP430
Mips [mips] Regenerate test before posting patch for constant multiplication (NFC) 2018-04-05 10:30:17 +00:00
NVPTX [NVPTX] add support for initializing fp16 arrays. 2018-04-06 22:25:08 +00:00
Nios2
PowerPC [DAGCombine] Improve ReduceLoad for SRL 2018-04-09 08:16:11 +00:00
RISCV [RISCV] Tablegen-driven Instruction Compression. 2018-04-06 21:07:05 +00:00
SPARC Re-enable "[MachineCopyPropagation] Extend pass to do COPY source forwarding" 2018-02-27 16:59:10 +00:00
SystemZ [MachineLICM] Re-enable hoisting of constant stores 2018-04-09 14:50:02 +00:00
Thumb Reapply ARM: Do not spill CSR to stack on entry to noreturn functions 2018-04-07 10:57:03 +00:00
Thumb2 [CodeGen] Add a new pass for PostRA sink 2018-03-22 20:06:47 +00:00
WebAssembly [WebAssembly] Allow for the creation of user-defined custom sections 2018-04-05 17:01:39 +00:00
WinCFGuard
WinEH
X86 [x86] Model the direction flag (DF) separately from the rest of EFLAGS. 2018-04-10 06:40:51 +00:00
XCore Use .set instead of = when printing assignment in assembly output 2018-03-27 16:44:41 +00:00