[llvm-commits] [llvm] r61062 - /llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h
Dan Gohman
gohman at apple.com
Mon Dec 15 16:47:19 PST 2008
Author: djg
Date: Mon Dec 15 18:47:19 2008
New Revision: 61062
URL: http://llvm.org/viewvc/llvm-project?rev=61062&view=rev
Log:
SDep's operator== should compare the Latency field too.
Modified:
llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h
Modified: llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h?rev=61062&r1=61061&r2=61062&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h (original)
+++ llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h Mon Dec 15 18:47:19 2008
@@ -118,7 +118,7 @@
}
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:
More information about the llvm-commits
mailing list