Skip to content

Commit 383b9af

Browse files
committed
[vpr][route] change the function that sort sinks from sort to std::stable_sort to be consistant with SPEC
1 parent 13fb245 commit 383b9af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/route/route_net.tpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ inline NetResultFlags route_net(ConnectionRouter& router,
129129
}
130130

131131
// compare the criticality of different sink nodes
132-
sort(begin(remaining_targets), end(remaining_targets), [&](int a, int b) {
132+
std::stable_sort(begin(remaining_targets), end(remaining_targets), [&](int a, int b) {
133133
return pin_criticality[a] > pin_criticality[b];
134134
});
135135

0 commit comments

Comments
 (0)