From 537add349254f5c5f8167c91e13979da16c8ae74 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 16 Dec 2008 00:47:19 +0000 Subject: [PATCH] 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 --- include/llvm/CodeGen/ScheduleDAG.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h index 4d3b60e59ae..74e14d34c88 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: