aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/Utils/Local.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Transforms/Utils/Local.h')
-rw-r--r--include/llvm/Transforms/Utils/Local.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h
index 2f83174249..c786c96512 100644
--- a/include/llvm/Transforms/Utils/Local.h
+++ b/include/llvm/Transforms/Utils/Local.h
@@ -20,6 +20,7 @@
namespace llvm {
class Pass;
+class PHINode;
//===----------------------------------------------------------------------===//
// Local constant propagation...
@@ -55,6 +56,15 @@ bool isInstructionTriviallyDead(Instruction *I);
///
bool dceInstruction(BasicBlock::iterator &BBI);
+//===----------------------------------------------------------------------===//
+// PHI Instruction Simplification
+//
+
+/// hasConstantValue - If the specified PHI node always merges together the same
+/// value, return the value, otherwise return null.
+///
+Value *hasConstantValue(PHINode *PN);
+
//===----------------------------------------------------------------------===//
// Control Flow Graph Restructuring...