Simplify code and do not invalidate iterators.
authorChris Lattner <sabre@nondot.org>
Sun, 12 Dec 2004 18:23:20 +0000 (18:23 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 12 Dec 2004 18:23:20 +0000 (18:23 +0000)
commitfb851ab2817f1e113502ab1a45b597485322944b
tree1b3ce7a0d811124c85291f725a2d58a4899d95ed
parent3ea78c4276dfbf5a078292ad8fd8dc952c4ff8b9
Simplify code and do not invalidate iterators.
This fixes a crash compiling TimberWolfMC that was exposed due to recent
optimizer changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18831 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GCSE.cpp