Skip to content

Commit e74683e

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/route/cb_metrics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ static void get_pin_locations(const t_physical_tile_type_ptr block_type, const e
611611
}
612612
}
613613
/* sort the vector at the current side in increasing order, for good measure */
614-
sort(pin_locations->at(iside).begin(), pin_locations->at(iside).end());
614+
std::stable_sort(pin_locations->at(iside).begin(), pin_locations->at(iside).end());
615615
}
616616
}
617617
/* now we have a vector of vectors [0..3][0..num_pins_on_this_side] specifying which pins are on which side */

0 commit comments

Comments
 (0)