We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0ea6c8c + fffb15d commit 73009b1Copy full SHA for 73009b1
vpr/src/pack/prepack.cpp
@@ -1212,8 +1212,8 @@ static std::unordered_set<t_pb_type*> get_pattern_blocks(const t_pack_patterns&
1212
* add the connected block to the queue
1213
*/
1214
while (current_connenction != nullptr) {
1215
- if (visited_from_pins.count(current_connenction->from_pin)) {
1216
- if (visited_to_pins.count(current_connenction->to_pin)) {
+ if (visited_from_pins.find(current_connenction->from_pin) != visited_from_pins.end()) {
+ if (visited_to_pins.find(current_connenction->to_pin) != visited_to_pins.end()) {
1217
/* We've already seen this connection */
1218
current_connenction = current_connenction->next;
1219
continue;
0 commit comments