Eliminate the loop that searches through each of the operands
[oota-llvm.git] / include / llvm / CodeGen / ScheduleHazardRecognizer.h
index 5cf45f7a99d3cd43eeb245ce8ad27dc7ae6809d1..369882d258e3b7cc960154f939c195d152a99174 100644 (file)
@@ -55,7 +55,10 @@ public:
 
   /// EmitNoop - This callback is invoked when a noop was added to the
   /// instruction stream.
-  virtual void EmitNoop() {}
+  virtual void EmitNoop() {
+    // Default implementation: count it as a cycle.
+    AdvanceCycle();
+  }
 };
 
 }