While walking the AST looking for reductions, notice if any globals are unreferenced, and if they are, add a transformation for removing the global.
While walking the AST looking for reductions, notice if any globals are unreferenced, and if they are, add a transformation for removing the global.