author | Juergen Ributzka <juergen@apple.com> | |
Sat, 8 Feb 2014 00:20:45 +0000 (00:20 +0000) | ||
committer | Juergen Ributzka <juergen@apple.com> | |
Sat, 8 Feb 2014 00:20:45 +0000 (00:20 +0000) | ||
commit | 1368e659d7f5f5b1f87268a9a4c8265b29879320 | |
tree | f2e8769b5c79e5f514809d679a8d70046fd2fede | tree | snapshot (tar.xz tar.gz zip) |
parent | 3365433e453d939a9f5c3fe5958edfa05f016b4b | commit | diff |
[Constant Hoisting] Don't update the use list while traversing it - DOH!
This fix first traverses the whole use list of the constant expression and
keeps track of the instructions that need to be updated. Then perform the
fixup afterwards.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201008 91177308-0d34-0410-b5e6-96231b3b80d8
This fix first traverses the whole use list of the constant expression and
keeps track of the instructions that need to be updated. Then perform the
fixup afterwards.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201008 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ConstantHoisting.cpp | diff | blob | history |