diff options
Diffstat (limited to 'include/llvm/Transforms/Scalar/ConstantProp.h')
-rw-r--r-- | include/llvm/Transforms/Scalar/ConstantProp.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Transforms/Scalar/ConstantProp.h b/include/llvm/Transforms/Scalar/ConstantProp.h index 3a8fa5b..0da13e9 100644 --- a/include/llvm/Transforms/Scalar/ConstantProp.h +++ b/include/llvm/Transforms/Scalar/ConstantProp.h @@ -23,9 +23,11 @@ bool doConstantPropogation(BasicBlock *BB, BasicBlock::iterator &I); // ConstantFoldTerminator - If a terminator instruction is predicated on a // constant value, convert it into an unconditional branch to the constant -// destination. +// destination. This is a nontrivial operation because the successors of this +// basic block must have their PHI nodes updated. // -bool ConstantFoldTerminator(TerminatorInst *T); +bool ConstantFoldTerminator(BasicBlock *BB, BasicBlock::iterator &I, + TerminatorInst *T); //===----------------------------------------------------------------------===// |