Change PHINode::hasConstantValue to have a DominatorTree argument
authorDan Gohman <gohman@apple.com>
Thu, 3 Sep 2009 15:34:35 +0000 (15:34 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 3 Sep 2009 15:34:35 +0000 (15:34 +0000)
commitbccfc24c4e8092e1ee18746dd4cee01247728faa
treebf1ea31f55e271210a43862a4fe5c64749b8c796
parentdd12de686cb0a3bcff879ae895fe461caa6f7842
Change PHINode::hasConstantValue to have a DominatorTree argument
instead of a bool argument, and to do the dominator check itself.
This makes it eaiser to use when DominatorTree information is
available.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80920 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Instructions.h
lib/Transforms/Scalar/GVN.cpp
lib/Transforms/Utils/BasicBlockUtils.cpp
lib/Transforms/Utils/LoopSimplify.cpp
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
lib/VMCore/Instructions.cpp
test/Transforms/GVN/2008-07-02-Unreachable.ll