Fix PR3138: if we merge the entry block into another block, make sure to
authorChris Lattner <sabre@nondot.org>
Thu, 27 Nov 2008 19:25:19 +0000 (19:25 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 27 Nov 2008 19:25:19 +0000 (19:25 +0000)
commit3d86d242c69a26ba2e6102f32b00b04884c4c9b1
tree85f3f2b4af5efccb0210169a7374abd2af6ccd95
parenta89d102b32d74fed5d3c7aeea8869a11c3074063
Fix PR3138: if we merge the entry block into another block, make sure to
move the other block back up into the entry position!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60179 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/JumpThreading.cpp
test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll [new file with mode: 0644]