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
This commit is contained in:
Dan Gohman 2008-12-16 00:47:19 +00:00
parent fc953d149f
commit 537add3492

View 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: