aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Transforms/Scalar/ConstantProp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Scalar/ConstantProp.h b/include/llvm/Transforms/Scalar/ConstantProp.h
index f094ec5496..e77a9c0600 100644
--- a/include/llvm/Transforms/Scalar/ConstantProp.h
+++ b/include/llvm/Transforms/Scalar/ConstantProp.h
@@ -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);
}