commit | 30d4f6571e5cd46c3179aab4c1759742caf9d531 | [log] [tgz] |
---|---|---|
author | Xin Tong <trent.xin.tong@gmail.com> | Fri Feb 24 01:43:36 2017 +0000 |
committer | Xin Tong <trent.xin.tong@gmail.com> | Fri Feb 24 01:43:36 2017 +0000 |
tree | 8e3144ac3afa4aa03e00f501cd71ff9981d21160 | |
parent | c1a4dd37ad899a233c0aaf358ae050a5f4e518e5 [diff] |
Fix an iterator invalidation bug when simplifying LIC user. LoopUnswitch/simplify-with-nonvalness.ll is the test case for this. The LIC has 2 users and deleting the 1st user when it can be simplified invalidated the iterator for the 2nd user. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296069 91177308-0d34-0410-b5e6-96231b3b80d8