StackMap: FastISel: Add an appropriate number of immediate operands to the
authorAlex Lorenz <arphaman@gmail.com>
Mon, 10 Aug 2015 21:27:03 +0000 (21:27 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 10 Aug 2015 21:27:03 +0000 (21:27 +0000)
commit8843f88076812cf59f030a004ab936f5993dc1be
tree2ae17d3a30546de5b2f569b6fa13b58cab3eb3b6
parentbfbf462c0de01fe6ef81c886125aaea033302139
StackMap: FastISel: Add an appropriate number of immediate operands to the
frame setup instruction.

This commit ensures that the stack map lowering code in FastISel adds an
appropriate number of immediate operands to the frame setup instruction.

The previous code added just one immediate operand, which was fine for a target
like AArch64, but on X86 the ADJCALLSTACKDOWN64 instruction needs two explicit
operands. This caused the machine verifier to report an error when the old code
added just one.

Reviewers: Juergen Ributzka

Differential Revision: http://reviews.llvm.org/D11853

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244508 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/FastISel.cpp
test/CodeGen/AArch64/stackmap-frame-setup.ll [new file with mode: 0644]
test/CodeGen/PowerPC/stackmap-frame-setup.ll [new file with mode: 0644]
test/CodeGen/X86/stackmap-frame-setup.ll [new file with mode: 0644]