Skip to content

Commit 4275b6a

Browse files
committed
[vpr][pack] change count method to find
1 parent e026015 commit 4275b6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/pack/prepack.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,8 +1210,8 @@ static std::unordered_set<t_pb_type*> get_pattern_blocks(const t_pack_patterns&
12101210
* add the connected block to the queue
12111211
*/
12121212
while (current_connenction != nullptr) {
1213-
if (visited_from_pins.count(current_connenction->from_pin)) {
1214-
if (visited_to_pins.count(current_connenction->to_pin)) {
1213+
if (visited_from_pins.find(current_connenction->from_pin) != visited_from_pins.end()) {
1214+
if (visited_to_pins.find(current_connenction->to_pin) != visited_to_pins.end()) {
12151215
/* We've already seen this connection */
12161216
current_connenction = current_connenction->next;
12171217
continue;

0 commit comments

Comments
 (0)