diff options
Diffstat (limited to 'kernel/rtlil.cc')
-rw-r--r-- | kernel/rtlil.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index 1311f31cc..661525735 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -1024,6 +1024,13 @@ void RTLIL::SigSpec::optimize() check(); } +RTLIL::SigSpec RTLIL::SigSpec::optimized() const +{ + RTLIL::SigSpec ret = *this; + ret.optimize(); + return ret; +} + bool RTLIL::SigChunk::compare(const RTLIL::SigChunk &a, const RTLIL::SigChunk &b) { if (a.wire != b.wire) { |