Added RegisterCoalescer to required passes for PBQP.
[oota-llvm.git] / lib / CodeGen / DeadMachineInstructionElim.cpp
index 4832a5ee9ae0488f37cd2e08c297f8742ae2bf61..45ce84b67c914ef2fb1110f47841aa30f7139e13 100644 (file)
@@ -36,7 +36,7 @@ namespace {
     DeadMachineInstructionElim() : MachineFunctionPass(&ID) {}
 
   private:
-    bool isDead(MachineInstr *MI) const;
+    bool isDead(const MachineInstr *MI) const;
   };
 }
 char DeadMachineInstructionElim::ID = 0;
@@ -49,7 +49,7 @@ FunctionPass *llvm::createDeadMachineInstructionElimPass() {
   return new DeadMachineInstructionElim();
 }
 
-bool DeadMachineInstructionElim::isDead(MachineInstr *MI) const {
+bool DeadMachineInstructionElim::isDead(const MachineInstr *MI) const {
   // Don't delete instructions with side effects.
   bool SawStore = false;
   if (!MI->isSafeToMove(TII, SawStore))