Enhance hasConstantValue to ignore undef values in phi nodes. This allows it
authorChris Lattner <sabre@nondot.org>
Sun, 17 Oct 2004 21:23:26 +0000 (21:23 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 17 Oct 2004 21:23:26 +0000 (21:23 +0000)
commit8143c2bc0de4f39bef0432a25d9a111be4767fa1
tree7d2b206a7d7fead5814639ba25c8ca63e1f23f75
parentc30bda7540de573c887e00bb76ac78d85f56acd4
Enhance hasConstantValue to ignore undef values in phi nodes.  This allows it
to think that PHI[4, undef] == 4.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17096 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/Local.cpp