diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-12-17 16:10:40 -0800 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-12-17 16:10:40 -0800 |
commit | b1b99e421eac9f960a08a17fe69e56a0b0661ebb (patch) | |
tree | 156b0e406ff09c2733bd66d6285d2c112741fa1e | |
parent | a6fdb9f5c1262e57d4aa292778c947773d9fe04d (diff) | |
download | yosys-b1b99e421eac9f960a08a17fe69e56a0b0661ebb.tar.gz yosys-b1b99e421eac9f960a08a17fe69e56a0b0661ebb.tar.bz2 yosys-b1b99e421eac9f960a08a17fe69e56a0b0661ebb.zip |
Use pool<> instead of std::set<> to preserver ordering
-rw-r--r-- | passes/techmap/abc9.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/passes/techmap/abc9.cc b/passes/techmap/abc9.cc index 34e122e7b..1f7585318 100644 --- a/passes/techmap/abc9.cc +++ b/passes/techmap/abc9.cc @@ -1082,18 +1082,18 @@ struct Abc9Pass : public Pass { assign_map.set(module); std::vector<RTLIL::Cell*> all_cells = module->selected_cells(); - std::set<RTLIL::Cell*> unassigned_cells(all_cells.begin(), all_cells.end()); + pool<RTLIL::Cell*> unassigned_cells(all_cells.begin(), all_cells.end()); - std::set<RTLIL::Cell*> expand_queue, next_expand_queue; - std::set<RTLIL::Cell*> expand_queue_up, next_expand_queue_up; - std::set<RTLIL::Cell*> expand_queue_down, next_expand_queue_down; + pool<RTLIL::Cell*> expand_queue, next_expand_queue; + pool<RTLIL::Cell*> expand_queue_up, next_expand_queue_up; + pool<RTLIL::Cell*> expand_queue_down, next_expand_queue_down; typedef std::pair<SigSpec, IdString> clkdomain_t; std::map<clkdomain_t, pool<RTLIL::IdString>> assigned_cells; std::map<RTLIL::Cell*, clkdomain_t> assigned_cells_reverse; - std::map<RTLIL::Cell*, std::set<RTLIL::SigBit>> cell_to_bit, cell_to_bit_up, cell_to_bit_down; - std::map<RTLIL::SigBit, std::set<RTLIL::Cell*>> bit_to_cell, bit_to_cell_up, bit_to_cell_down; + std::map<RTLIL::Cell*, pool<RTLIL::SigBit>> cell_to_bit, cell_to_bit_up, cell_to_bit_down; + std::map<RTLIL::SigBit, pool<RTLIL::Cell*>> bit_to_cell, bit_to_cell_up, bit_to_cell_down; for (auto cell : all_cells) for (auto &conn : cell->connections()) |