Teach combineMetadata how to merge 'nonnull' metadata.
authorPhilip Reames <listmail@philipreames.com>
Tue, 21 Oct 2014 21:02:19 +0000 (21:02 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 21 Oct 2014 21:02:19 +0000 (21:02 +0000)
commit5b69592c5af4250108757a5503c476ccc49305f3
treeb3af9e3014835e89e0f4286524e96f75ed9f6f83
parent7b60e0eb39827c5c4d77164c8064d886c9305db9
Teach combineMetadata how to merge 'nonnull' metadata.

combineMetadata is used when merging two instructions into one.  This change teaches it how to merge 'nonnull' - i.e. only preserve it on the new instruction if it's set on both sources.  This isn't actually used yet since I haven't adjusted any of the call sites to pass in nonnull as a 'known metadata'.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220325 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/Local.cpp