intel / systemc-compiler

This tool translates synthesizable SystemC code to synthesizable SystemVerilog.
Other
231 stars 36 forks source link

Enable unused variable/constant and statements removing #31

Closed mikhailmoiseev closed 11 months ago

mikhailmoiseev commented 2 years ago

Start with checking requiredVars, why it is not used in serializeProcSingle?

Implemented with useVarStmts/defVarStmts in ScTraverseConst and writeToValue/readFromValue in ScParseExprValue. Currently turned off with REMOVE_UNUSED_VAR_STMTS().

It needs to enable and add more tests, current tests: misc_unused_remove*.cpp.