Perform an intelligent splice of the predecessor with the single successor.
authorBill Wendling <isanbard@gmail.com>
Sat, 19 Oct 2013 11:27:12 +0000 (11:27 +0000)
committerBill Wendling <isanbard@gmail.com>
Sat, 19 Oct 2013 11:27:12 +0000 (11:27 +0000)
commitd5b7f2b62cdb3a14162c57e27c06a27dda9a78c4
tree0bd1a02066e426eebb49c415b1d758b3a4f1d832
parent4805bf59b9e41a95336c066ec58194ff6801694a
Perform an intelligent splice of the predecessor with the single successor.

If the predecessor's being spliced into a landing pad, then we need the PHIs to
come first and the rest of the predecessor's code to come *after* the landing
pad instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193035 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/Local.cpp
test/Transforms/JumpThreading/landing-pad-splicing.ll [new file with mode: 0644]