Add an extra parameter that Chris requested

llvm-svn: 22665
This commit is contained in:
Nate Begeman 2005-08-04 23:50:43 +00:00
parent b392321cae
commit 0a94dec78a
2 changed files with 2 additions and 2 deletions

View File

@ -807,7 +807,7 @@ public:
/// hasConstantValue - If the specified PHI node always merges together the
/// same value, return the value, otherwise return null.
///
Value *hasConstantValue();
Value *hasConstantValue(bool AllowNonDominatingInstruction = false);
/// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const PHINode *) { return true; }

View File

@ -135,7 +135,7 @@ void PHINode::resizeOperands(unsigned NumOps) {
/// hasConstantValue - If the specified PHI node always merges together the same
/// value, return the value, otherwise return null.
///
Value *PHINode::hasConstantValue() {
Value *PHINode::hasConstantValue(bool AllowNonDominatingInstruction) {
// If the PHI node only has one incoming value, eliminate the PHI node...
if (getNumIncomingValues() == 1)
return getIncomingValue(0);