From abbc2dd77908f146f73f4cd1abfdfe47faacf43d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 19 Dec 2003 05:56:28 +0000 Subject: Add new function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10529 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/Utils/Local.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') 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... -- cgit v1.2.3-70-g09d2