Skip to content

Commit 6e3922e

Browse files
functional.cc: Explicit unsorted-pool-as-LIFO
1 parent 8475585 commit 6e3922e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/functional.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ class FunctionalIRConstruction {
518518
if (cell->type.in(ID($assert), ID($assume), ID($live), ID($fair), ID($cover), ID($check)))
519519
queue.emplace_back(cell);
520520
}
521+
// we are relying here on unsorted pools iterating last-in-first-out
521522
for (auto riter = module->ports.rbegin(); riter != module->ports.rend(); ++riter) {
522523
auto *wire = module->wire(*riter);
523524
if (wire && wire->port_input) {

0 commit comments

Comments
 (0)