mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -34,8 +34,6 @@ static Statistic<> NumHoistedPH("licm\t\t- Number of insts hoisted to a loop "
|
||||
|
||||
namespace {
|
||||
struct LICM : public FunctionPass, public InstVisitor<LICM> {
|
||||
const char *getPassName() const { return "Loop Invariant Code Motion"; }
|
||||
|
||||
virtual bool runOnFunction(Function &F);
|
||||
|
||||
// This transformation requires natural loop information...
|
||||
@@ -104,6 +102,8 @@ namespace {
|
||||
hoist(I);
|
||||
}
|
||||
};
|
||||
|
||||
RegisterPass<LICM> X("licm", "Loop Invariant Code Motion");
|
||||
}
|
||||
|
||||
Pass *createLICMPass() { return new LICM(); }
|
||||
|
Reference in New Issue
Block a user