mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
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:
@ -17,6 +17,11 @@ struct ConstantPropogation : public Pass {
|
|||||||
// folding
|
// folding
|
||||||
static bool doConstantPropogation(Method *M);
|
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) {
|
inline bool doPerMethodWork(Method *M) {
|
||||||
return doConstantPropogation(M);
|
return doConstantPropogation(M);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user