aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCSchedule.h
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-10-17 17:27:10 +0000
committerAndrew Trick <atrick@apple.com>2012-10-17 17:27:10 +0000
commitfdd6fa89b960088b368231ec08e56a0c0b1e6930 (patch)
treeb4f573ba21c505fc3a0a7e39c85a11c9ce061d51 /include/llvm/MC/MCSchedule.h
parenta747a84addb85ef0c34ba88f2a45679a413f8347 (diff)
downloadexternal_llvm-fdd6fa89b960088b368231ec08e56a0c0b1e6930.zip
external_llvm-fdd6fa89b960088b368231ec08e56a0c0b1e6930.tar.gz
external_llvm-fdd6fa89b960088b368231ec08e56a0c0b1e6930.tar.bz2
misched: Better handling of invalid latencies in the machine model
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166107 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSchedule.h')
-rw-r--r--include/llvm/MC/MCSchedule.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/MC/MCSchedule.h b/include/llvm/MC/MCSchedule.h
index 0504dc1..c9a060c 100644
--- a/include/llvm/MC/MCSchedule.h
+++ b/include/llvm/MC/MCSchedule.h
@@ -54,10 +54,12 @@ struct MCWriteProcResEntry {
};
/// Specify the latency in cpu cycles for a particular scheduling class and def
-/// index. Also identify the WriteResources of this def. When the operand
-/// expands to a sequence of writes, this ID is the last write in the sequence.
+/// index. -1 indicates an invalid latency. Heuristics would typically consider
+/// an instruction with invalid latency to have infinite latency. Also identify
+/// the WriteResources of this def. When the operand expands to a sequence of
+/// writes, this ID is the last write in the sequence.
struct MCWriteLatencyEntry {
- unsigned Cycles;
+ int Cycles;
unsigned WriteResourceID;
bool operator==(const MCWriteLatencyEntry &Other) const {