Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX][Pass] concurrent modification in RemoveUnusedVars (apache#32)
* [Pass] Fix concurrent modification in RemoveUnusedVars When running RemoveUnusedVars (i.e. remove_all_unused), in some cases the map users will raise Concurrent modification error. This commit fixed it by changing the logic to "iterate the map first and update it later". * change the algorithm by store keys first * Add an ICHECK before getting map value * change the information of the ICHECK
- Loading branch information