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)
commitd92c2a75926fb4cf6e206ba3c2c9698065958243
treea37e53e898d90da50558f6c8b5240fd26aad5fb1
parenta92fa4474050c4a125b539516faf6c90893daecd
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

llvm-svn: 220392
llvm/lib/Transforms/Utils/SimplifyCFG.cpp