The Compiler removes dead assignments while generating code. In some programs it may find additional cases of expressions that are not used.