1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

Expose constant prop of an instruction

llvm-svn: 1367
This commit is contained in:
Chris Lattner 2001-11-26 18:50:11 +00:00
parent 87bffac69b
commit f02cda6862

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);
}