Fixes and cleanups pointed out by Chris. In general, be careful to handle 0 results...
authorOwen Anderson <resistor@mac.com>
Mon, 30 Aug 2010 22:07:52 +0000 (22:07 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 30 Aug 2010 22:07:52 +0000 (22:07 +0000)
commit1e35610f20ba04daf3aa3048219914421b9931af
treedef5835b9af95ae32eb08785fa9260a19e7e0ccf
parent55c134a26188291f60c44d027a837f05d797194f
Fixes and cleanups pointed out by Chris.  In general, be careful to handle 0 results from ComputeValueKnownInPredecessors
(indicating undef), and re-use existing constant folding APIs.

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