reapply 86289, 86278, 86270, 86267, 86266 & 86264 plus a fix
authorChris Lattner <sabre@nondot.org>
Sat, 7 Nov 2009 08:05:03 +0000 (08:05 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 7 Nov 2009 08:05:03 +0000 (08:05 +0000)
commit5729d38c81bc2e3b21a2bb7a80a8cde384fc7b7b
treeb65141b577e196b507417ee4c73f18d74ccf70c6
parente880efe446f731b73558542c12a6f980b8baa765
reapply 86289, 86278, 86270, 86267, 86266 & 86264 plus a fix
(making pred factoring only happen if threading is guaranteed
to be successful).

This now survives an X86-64 bootstrap of llvm-gcc.

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