Reapply r138695. Fix PassManager stack depths.
[oota-llvm.git] / include / llvm / CodeGen / ScheduleHazardRecognizer.h
index 4771a35bc78e85eaaa6ccd95d68aa7990c9f5237..2f53baa1c7e6722b51912868293105468d947a24 100644 (file)
@@ -42,6 +42,8 @@ public:
 
   unsigned getMaxLookAhead() const { return MaxLookAhead; }
 
+  bool isEnabled() const { return MaxLookAhead != 0; }
+
   /// atIssueLimit - Return true if no more instructions may be issued in this
   /// cycle.
   virtual bool atIssueLimit() const { return false; }