Enforce StackID definition in PEI
authorSander de Smalen <sander.desmalen@arm.com>
Tue, 2 Apr 2019 09:46:52 +0000 (09:46 +0000)
committerSander de Smalen <sander.desmalen@arm.com>
Tue, 2 Apr 2019 09:46:52 +0000 (09:46 +0000)
commit7f23e0a62fc95791af72d591d39f71b28642cc41
tree69f763dc284c43c863f99c9e0396bbeb94729de1
parentc5cefa2caf79af2f40555754cbb6ff6756053b12
Enforce StackID definition in PEI

There are various places in LLVM where the definition of StackID is not
properly honoured, for example in PEI where objects with a StackID > 0 are
allocated on the default stack (StackID0). This patch enforces that PEI
only considers allocating objects to StackID 0.

Reviewers: arsenm, thegameg, MatzeB

Reviewed By: arsenm

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

llvm-svn: 357460
llvm/include/llvm/CodeGen/MachineFrameInfo.h
llvm/lib/CodeGen/MIRParser/MIRParser.cpp
llvm/lib/CodeGen/MachineFrameInfo.cpp
llvm/lib/CodeGen/PrologEpilogInserter.cpp
llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
llvm/test/CodeGen/AArch64/stack-id-pei-alloc.mir [new file with mode: 0644]
llvm/test/CodeGen/AArch64/stack-id-stackslot-scavenging.mir [new file with mode: 0644]