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)
commit7c801dc90b0dfda7ec74738cdf15c009fa92efeb
treebfc36e5ee7db95f479f5612cd7915bd35baab79b
parent992bdf1b45bdb71871975729583e193ffbd67d13
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.

llvm-svn: 220728
llvm/lib/Target/X86/X86MCInstLower.cpp
llvm/test/CodeGen/X86/stackmap-shadow-optimization.ll