Fix a stackmap bug introduced in r220710.
authorPete Cooper <peter_cooper@apple.com>
Mon, 27 Oct 2014 22:38:45 +0000 (22:38 +0000)
committerPete Cooper <peter_cooper@apple.com>
Mon, 27 Oct 2014 22:38:45 +0000 (22:38 +0000)
commit68aeef61f4a1da7af53b6ddcdbb6eb75da7eb72d
treef0b0516d7eb3eaffc50b4b3605989482f55c245a
parentcf84852133ec605252dd2f26aa2abcc976e4c215
Fix a stackmap bug introduced in r220710.

For a call to not return in to the stackmap shadow, the shadow must end with the call.

To do this, we must insert any required nops *before* the call, and not after it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220728 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86MCInstLower.cpp
test/CodeGen/X86/stackmap-shadow-optimization.ll