[MIPS GlobalISel] Lower G_DYN_STACKALLOC
authorPetar Avramovic <Petar.Avramovic@rt-rk.com>
Thu, 12 Sep 2019 11:39:50 +0000 (11:39 +0000)
committerPetar Avramovic <Petar.Avramovic@rt-rk.com>
Thu, 12 Sep 2019 11:39:50 +0000 (11:39 +0000)
commit646e1f7b7fa3b4f5aded87555bb85721a7138e40
tree348c420fa67adbbabdce7791049f8ca3073a34f7
parent75e43a607c8bfbb33cc56b74bbe6becd2021731a
[MIPS GlobalISel] Lower G_DYN_STACKALLOC

IRTranslator creates G_DYN_STACKALLOC instruction during expansion of
alloca when argument that tells number of elements to allocate on stack
is a virtual register. Use default lowering for MIPS32.

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

llvm-svn: 371728
llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
llvm/test/CodeGen/Mips/GlobalISel/legalizer/dyn_stackalloc.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/dyn_stackalloc.ll [new file with mode: 0644]