[SjLj Prepare] When demoting an invoke instructions to the stack, if the normal
authorChad Rosier <mcrosier@apple.com>
Tue, 5 Feb 2013 18:23:10 +0000 (18:23 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 5 Feb 2013 18:23:10 +0000 (18:23 +0000)
commit1e45487dfde9de304f28e1fb49b3c15a036b9c00
tree83586d992c43c5f94b53a0fc6c3f9c693c1013c8
parente6dc59891fc53d65b3f6d19772d26e23e0cc1cac
[SjLj Prepare] When demoting an invoke instructions to the stack, if the normal
edge is critical, then split it so we can insert the store.
rdar://13126179

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174418 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/DemoteRegToStack.cpp
test/CodeGen/ARM/sjlj-prepare-critical-edge.ll [new file with mode: 0644]