mirror of https://github.com/YosysHQ/yosys.git
rtlil: sort twines by string, not by ID, in sort methods
This commit is contained in:
parent
5672ecf584
commit
b29f04fb38
|
|
@ -1689,7 +1689,7 @@ void RTLIL::Design::rename(RTLIL::Module *module, TwineRef new_name)
|
||||||
void RTLIL::Design::sort()
|
void RTLIL::Design::sort()
|
||||||
{
|
{
|
||||||
scratchpad.sort();
|
scratchpad.sort();
|
||||||
modules_.sort();
|
modules_.sort(sort_by_twine_str_expensive(twines));
|
||||||
for (auto &it : modules_)
|
for (auto &it : modules_)
|
||||||
it.second->sort();
|
it.second->sort();
|
||||||
}
|
}
|
||||||
|
|
@ -1697,7 +1697,7 @@ void RTLIL::Design::sort()
|
||||||
void RTLIL::Design::sort_modules()
|
void RTLIL::Design::sort_modules()
|
||||||
{
|
{
|
||||||
scratchpad.sort();
|
scratchpad.sort();
|
||||||
modules_.sort();
|
modules_.sort(sort_by_twine_str_expensive(twines));
|
||||||
}
|
}
|
||||||
|
|
||||||
void check_module(RTLIL::Module *module, ParallelDispatchThreadPool &thread_pool);
|
void check_module(RTLIL::Module *module, ParallelDispatchThreadPool &thread_pool);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue