third bug from PR6119: the xor dupe extension allows
commitb5f910656744e3c56b539195a3bdc52c57b1c9b4
authorChris Lattner <sabre@nondot.org>
Sat, 23 Jan 2010 19:21:31 +0000 (23 19:21 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 23 Jan 2010 19:21:31 +0000 (23 19:21 +0000)
treea2155e800ad98220ab369474ee87cb5d4f237429
parent56739070eb19f5ed1bbad753e9ddc573ae3c8d37
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