Stackmap shadows should consider call returns a branch target.
authorPete Cooper <peter_cooper@apple.com>
Mon, 27 Oct 2014 19:40:35 +0000 (19:40 +0000)
committerPete Cooper <peter_cooper@apple.com>
Mon, 27 Oct 2014 19:40:35 +0000 (19:40 +0000)
commit3c0af35232d3efcf5a88ad3f44999c8e0e3c4616
tree480b58e3b87566254f10f61cbad80a0bb1a7d89d
parent90f741a2ce6422ad7fc6db111a470f3da5b5942b
Stackmap shadows should consider call returns a branch target.

To avoid emitting too many nops, a stackmap shadow can include emitted instructions in the shadow, but these must not include branch targets.

A return from a call should count as a branch target as patching over the instructions after the call would lead to incorrect behaviour for threads currently making that call, when they return.

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