diff options
Diffstat (limited to 'include/llvm/CodeGen/ScheduleHazardRecognizer.h')
-rw-r--r-- | include/llvm/CodeGen/ScheduleHazardRecognizer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/ScheduleHazardRecognizer.h b/include/llvm/CodeGen/ScheduleHazardRecognizer.h index 4771a35bc7..2f53baa1c7 100644 --- a/include/llvm/CodeGen/ScheduleHazardRecognizer.h +++ b/include/llvm/CodeGen/ScheduleHazardRecognizer.h @@ -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; } |