]> granicus.if.org Git - llvm/commit
Fix an iterator invalidation bug when simplifying LIC user.
authorXin Tong <trent.xin.tong@gmail.com>
Fri, 24 Feb 2017 01:43:36 +0000 (01:43 +0000)
committerXin Tong <trent.xin.tong@gmail.com>
Fri, 24 Feb 2017 01:43:36 +0000 (01:43 +0000)
commit30d4f6571e5cd46c3179aab4c1759742caf9d531
tree8e3144ac3afa4aa03e00f501cd71ff9981d21160
parentc1a4dd37ad899a233c0aaf358ae050a5f4e518e5
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
lib/Transforms/Scalar/LoopUnswitch.cpp