Modify the comparison optimizations in the peephole optimizer to update the
[oota-llvm.git] / include / llvm / Target / TargetInstrInfo.h
index 844b96566a3d2965afad2e50fca5c6fff56af3df..f4652011e92cf31901383a38ca2813553ff2a813 100644 (file)
@@ -586,9 +586,11 @@ public:
   }
 
   /// ConvertToSetZeroFlag - Convert the instruction to set the zero flag so
-  /// that we can remove a "comparison with zero".
-  virtual bool ConvertToSetZeroFlag(MachineInstr *Instr,
-                                    MachineInstr *CmpInstr) const {
+  /// that we can remove a "comparison with zero".  Update the iterator *only*
+  /// if a transformation took place.
+  virtual bool ConvertToSetZeroFlag(MachineInstr * /*Instr*/,
+                                    MachineInstr * /*CmpInstr*/,
+                                    MachineBasicBlock::iterator &) const {
     return false;
   }