author | Philip Reames <listmail@philipreames.com> | |
Wed, 22 Oct 2014 16:37:13 +0000 (16:37 +0000) | ||
committer | Philip Reames <listmail@philipreames.com> | |
Wed, 22 Oct 2014 16:37:13 +0000 (16:37 +0000) | ||
commit | 1b8af6a8f0aee8772df8a8e1551c0097d2558fc7 | |
tree | 676350af411adf10ccab0a7d20a740d6b87e9b92 | tree | snapshot (tar.xz tar.gz zip) |
parent | dc18ebc4b12d64ada969a5879cff162933b029ba | commit | diff |
Preserving 'nonnull' metadata in SimplifyCFG
When we hoist two loads above an if, we can preserve the nonnull metadata. We could also do the same for sinking them, but we appear to not handle metadata at all in that case.
Thanks to Hal for the review.
Differential Revision: http://reviews.llvm.org/D5910
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220392 91177308-0d34-0410-b5e6-96231b3b80d8
When we hoist two loads above an if, we can preserve the nonnull metadata. We could also do the same for sinking them, but we appear to not handle metadata at all in that case.
Thanks to Hal for the review.
Differential Revision: http://reviews.llvm.org/D5910
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220392 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp | diff | blob | history |