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)
commitd7c21364a92a035e20d89928e2b0ee60e35e64a7
treed76bf6a4bbb7304334ac3319f82e2c774127ae61
parentb2d3f035e2ad90890b80cd45348adf4daec20e19
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'.

llvm-svn: 220325
llvm/lib/Transforms/Utils/Local.cpp