handle undef values much more carefully: generalize the resolveundefbranches
authorChris Lattner <sabre@nondot.org>
Wed, 20 Dec 2006 06:21:33 +0000 (06:21 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 20 Dec 2006 06:21:33 +0000 (06:21 +0000)
commit3bad2533bb18d45a811e56d9fd3a2d1e7b94be9e
tree832fbb03053689f3910a8642c625ae1ce1d934d1
parentd407f41413d4c67d354e4533a252630f72eb8815
handle undef values much more carefully: generalize the resolveundefbranches
code to handle instructions as well, so that we properly fold things like
X & undef -> 0.
This fixes Transforms/SCCP/2006-12-19-UndefBug.ll

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