third bug from PR6119: the xor dupe extension allows
authorChris Lattner <sabre@nondot.org>
Sat, 23 Jan 2010 19:21:31 +0000 (19:21 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 23 Jan 2010 19:21:31 +0000 (19:21 +0000)
commitd668839cb9b5db6865fd98e5e7dfccd64abf3e95
treea2155e800ad98220ab369474ee87cb5d4f237429
parentdbeecede809c1bffb016e48674622c5e8cb75a0c
third bug from PR6119: the xor dupe extension allows
for arbitrary terminators in predecessors, don't assume
it is a conditional or uncond branch.  The testcase shows
an example where they can happen with switches.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94323 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/JumpThreading.cpp
test/Transforms/JumpThreading/crash.ll