aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-01-21 05:51:33 +0000
committerAndrew Trick <atrick@apple.com>2011-01-21 05:51:33 +0000
commitc8bfd1d78ff9a307d1d4cb57cce4549b538e60f4 (patch)
tree13af786aec75effa04412a01b22f838fdeee111f /include/llvm/CodeGen
parentcd151d2f95eabae61b3cf8e675717d5674afbe85 (diff)
Convert -enable-sched-cycles and -enable-sched-hazard to -disable
flags. They are still not enable in this revision. Added TargetInstrInfo::isZeroCost() to fix a fundamental problem with the scheduler's model of operand latency in the selection DAG. Generalized unit tests to work with sched-cycles. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/ScheduleHazardRecognizer.h2
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; }