systemc-compiler icon indicating copy to clipboard operation
systemc-compiler copied to clipboard

Enable unused variable/constant and statements removing

Open mikhailmoiseev opened this issue 3 years ago • 1 comments

mikhailmoiseev avatar May 26 '22 17:05 mikhailmoiseev

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.

mikhailmoiseev avatar May 26 '22 17:05 mikhailmoiseev