diff options
author | Nate Begeman <natebegeman@mac.com> | 2005-08-04 23:50:43 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2005-08-04 23:50:43 +0000 |
commit | c523f4c09647bfa17c3d209cf8333522bc3c069d (patch) | |
tree | dd2301dfc5f44e911be03256572a56a428fa381a | |
parent | a83ba0f5c934e2cdbb5724cab365ecc0b5aae6c6 (diff) |
Add an extra parameter that Chris requested
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22665 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Instructions.h | 2 | ||||
-rw-r--r-- | lib/VMCore/Instructions.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index cc2998d52b..b2d055bf3b 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -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; } diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index e454d6b3a0..035edb320a 100644 --- a/lib/VMCore/Instructions.cpp +++ b/lib/VMCore/Instructions.cpp @@ -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); |