Skip to content

Commit 73009b1

Browse files
committed
Merge branch 'pack_pattern_root_block' of https://github.com/verilog-to-routing/vtr-verilog-to-routing into pack_pattern_root_block
2 parents 0ea6c8c + fffb15d commit 73009b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/pack/prepack.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1212,8 +1212,8 @@ static std::unordered_set<t_pb_type*> get_pattern_blocks(const t_pack_patterns&
12121212
* add the connected block to the queue
12131213
*/
12141214
while (current_connenction != nullptr) {
1215-
if (visited_from_pins.count(current_connenction->from_pin)) {
1216-
if (visited_to_pins.count(current_connenction->to_pin)) {
1215+
if (visited_from_pins.find(current_connenction->from_pin) != visited_from_pins.end()) {
1216+
if (visited_to_pins.find(current_connenction->to_pin) != visited_to_pins.end()) {
12171217
/* We've already seen this connection */
12181218
current_connenction = current_connenction->next;
12191219
continue;

0 commit comments

Comments
 (0)