Re-apply r112539, being more careful to respect the return values of the constant...
authorOwen Anderson <resistor@mac.com>
Mon, 30 Aug 2010 23:22:36 +0000 (23:22 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 30 Aug 2010 23:22:36 +0000 (23:22 +0000)
commit327ca7bec274e25c05a0a4ae5b51a8a2062012c7
treefd184446a64b3f7ba510b0e6f926fb7c114e60a5
parent6d1e29d2f203093e3e03f15173c0f36637d3afe3
Re-apply r112539, being more careful to respect the return values of the constant folding methods.  Additionally,
use the ConstantExpr::get*() methods to simplify some constant folding.

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