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:
parent
87bffac69b
commit
f02cda6862
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user