SDep's operator== should compare the Latency field too.
authorDan Gohman <gohman@apple.com>
Tue, 16 Dec 2008 00:47:19 +0000 (00:47 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 16 Dec 2008 00:47:19 +0000 (00:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61062 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/ScheduleDAG.h

index 4d3b60e59ae4d681a546c93df0f9ce27fc752b62..74e14d34c88079bddb359b1d1f5c705e9e61e115 100644 (file)
@@ -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: