Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: src/compiler/instruction-scheduler.cc

Issue 2284373002: [turbofan] Instruction scheduler: keep ready nodes with same latency sorted in original order. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/instruction-scheduler.cc
diff --git a/src/compiler/instruction-scheduler.cc b/src/compiler/instruction-scheduler.cc
index d5bd1255767ff9351924e08ccf1c4566a172284a..a49e3a557d09ef80b0adb692660b47cd17b320e6 100644
--- a/src/compiler/instruction-scheduler.cc
+++ b/src/compiler/instruction-scheduler.cc
@@ -17,7 +17,7 @@ void InstructionScheduler::SchedulingQueueBase::AddNode(
// the next best candidate to schedule.
auto it = nodes_.begin();
while ((it != nodes_.end()) &&
- ((*it)->total_latency() > node->total_latency())) {
+ ((*it)->total_latency() >= node->total_latency())) {
++it;
}
nodes_.insert(it, node);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698