Factor local liveness computation out into its own function.
[oota-llvm.git] / lib / CodeGen / MachineLICM.cpp
index c2adb1e8b730957fd57d7a33ab369b614e3ec0b8..758f42a3f5d9d4c327fec5e693d31ca91a3e24c9 100644 (file)
@@ -150,12 +150,12 @@ namespace {
     ///
     void Hoist(MachineInstr &MI);
   };
-
-  char MachineLICM::ID = 0;
-  RegisterPass<MachineLICM> X("machine-licm",
-                              "Machine Loop Invariant Code Motion");
 } // end anonymous namespace
 
+char MachineLICM::ID = 0;
+static RegisterPass<MachineLICM>
+X("machinelicm", "Machine Loop Invariant Code Motion");
+
 FunctionPass *llvm::createMachineLICMPass() { return new MachineLICM(); }
 
 /// Hoist expressions out of the specified loop. Note, alias info for inner loop