]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
Preserving 'nonnull' metadata in SimplifyCFG
authorPhilip Reames <listmail@philipreames.com>
Wed, 22 Oct 2014 16:37:13 +0000 (16:37 +0000)
committerPhilip Reames <listmail@philipreames.com>
Wed, 22 Oct 2014 16:37:13 +0000 (16:37 +0000)
commit1b8af6a8f0aee8772df8a8e1551c0097d2558fc7
tree676350af411adf10ccab0a7d20a740d6b87e9b92
parentdc18ebc4b12d64ada969a5879cff162933b029ba
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
lib/Transforms/Utils/SimplifyCFG.cpp