mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-25 15:19:14 +00:00
Convert to new simpler pass structure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@877 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -12,12 +12,12 @@ class TerminatorInst;
|
||||
|
||||
namespace opt {
|
||||
|
||||
struct ConstantPropogation : public StatelessPass<ConstantPropogation> {
|
||||
struct ConstantPropogation : public Pass {
|
||||
// doConstantPropogation - Do trivial constant propogation and expression
|
||||
// folding
|
||||
static bool doConstantPropogation(Method *M);
|
||||
|
||||
inline static bool doPerMethodWork(Method *M) {
|
||||
inline bool doPerMethodWork(Method *M) {
|
||||
return doConstantPropogation(M);
|
||||
}
|
||||
};
|
||||
@@ -34,11 +34,10 @@ bool ConstantFoldTerminator(TerminatorInst *T);
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Sparse Conditional Constant Propogation Pass
|
||||
//
|
||||
|
||||
struct SCCPPass : public StatelessPass<SCCPPass> {
|
||||
struct SCCPPass : public Pass {
|
||||
static bool doSCCP(Method *M);
|
||||
|
||||
inline static bool doPerMethodWork(Method *M) {
|
||||
inline bool doPerMethodWork(Method *M) {
|
||||
return doSCCP(M);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user