aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-12-16 00:47:19 +0000
committerDan Gohman <gohman@apple.com>2008-12-16 00:47:19 +0000
commit537add349254f5c5f8167c91e13979da16c8ae74 (patch)
tree82eef97d33b6cf79f037eb8f75dd7233aa8f9209
parentfc953d149fd4e639a3d12f144c65a994b6551945 (diff)
downloadexternal_llvm-537add349254f5c5f8167c91e13979da16c8ae74.zip
external_llvm-537add349254f5c5f8167c91e13979da16c8ae74.tar.gz
external_llvm-537add349254f5c5f8167c91e13979da16c8ae74.tar.bz2
SDep's operator== should compare the Latency field too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61062 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/ScheduleDAG.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h
index 4d3b60e..74e14d3 100644
--- a/include/llvm/CodeGen/ScheduleDAG.h
+++ b/include/llvm/CodeGen/ScheduleDAG.h
@@ -118,7 +118,7 @@ namespace llvm {
}
bool operator==(const SDep &Other) const {
- if (Dep != Other.Dep) return false;
+ if (Dep != Other.Dep || Latency != Other.Latency) return false;
switch (Dep.getInt()) {
case Data:
case Anti: