Expose constant prop of an instruction

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1367 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-11-26 18:50:11 +00:00
parent 3ee997ba42
commit a3c2dee477

View File

@ -17,6 +17,11 @@ struct ConstantPropogation : public Pass {
// folding
static bool doConstantPropogation(Method *M);
// doConstantPropogation - Constant prop a specific instruction. Returns true
// and potentially moves the iterator if constant propogation was performed.
//
static bool doConstantPropogation(BasicBlock *BB, BasicBlock::iterator &I);
inline bool doPerMethodWork(Method *M) {
return doConstantPropogation(M);
}