projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Initialize SUnits before DAG building.
[oota-llvm.git]
/
lib
/
CodeGen
/
LatencyPriorityQueue.cpp
diff --git
a/lib/CodeGen/LatencyPriorityQueue.cpp
b/lib/CodeGen/LatencyPriorityQueue.cpp
index 0eb009ddac2943c1a5730a23ea92c7457ce97bcb..0578229432d25d64d150f5d3f15f35d1eb503158 100644
(file)
--- a/
lib/CodeGen/LatencyPriorityQueue.cpp
+++ b/
lib/CodeGen/LatencyPriorityQueue.cpp
@@
-46,7
+46,7
@@
bool latency_sort::operator()(const SUnit *LHS, const SUnit *RHS) const {
// Finally, just to provide a stable ordering, use the node number as a
// deciding factor.
- return
LHSNum < R
HSNum;
+ return
RHSNum < L
HSNum;
}