[llvm-commits] CVS: llvm/include/llvm/Instructions.h
Nate Begeman
natebegeman at mac.com
Thu Aug 4 16:24:31 PDT 2005
Changes in directory llvm/include/llvm:
Instructions.h updated: 1.24 -> 1.25
---
Log message:
Fix a fixme in CondPropagate.cpp by moving a PhiNode optimization into
BasicBlock's removePredecessor routine. This requires shuffling around
the definition and implementation of hasContantValue from Utils.h,cpp into
Instructions.h,cpp
---
Diffs of the changes: (+5 -0)
Instructions.h | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/include/llvm/Instructions.h
diff -u llvm/include/llvm/Instructions.h:1.24 llvm/include/llvm/Instructions.h:1.25
--- llvm/include/llvm/Instructions.h:1.24 Sun Jun 19 09:46:20 2005
+++ llvm/include/llvm/Instructions.h Thu Aug 4 18:24:19 2005
@@ -804,6 +804,11 @@
return getIncomingValue(getBasicBlockIndex(BB));
}
+ /// hasConstantValue - If the specified PHI node always merges together the
+ /// same value, return the value, otherwise return null.
+ ///
+ Value *hasConstantValue();
+
/// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const PHINode *) { return true; }
static inline bool classof(const Instruction *I) {
More information about the llvm-commits
mailing list