Add handling of !invariant.load to PropagateMetadata.
authorJustin Lebar <jlebar@google.com>
Sun, 11 Sep 2016 01:39:08 +0000 (01:39 +0000)
committerJustin Lebar <jlebar@google.com>
Sun, 11 Sep 2016 01:39:08 +0000 (01:39 +0000)
commit11a32043550759e86e7c0538927531c1f8651f12
tree06677db58e42172d954b0485afdc22375410a1ca
parent6d6b11a4a6a418956ac963bb9a7d9b1fd2966e3d
Add handling of !invariant.load to PropagateMetadata.

Summary:
This will let e.g. the load/store vectorizer propagate this metadata
appropriately.

Reviewers: arsenm

Subscribers: tra, jholewinski, hfinkel, mzolotukhin

Differential Revision: https://reviews.llvm.org/D23479

llvm-svn: 281153
llvm/lib/Analysis/VectorUtils.cpp
llvm/test/Transforms/LoadStoreVectorizer/NVPTX/propagate-invariance-metadata.ll [new file with mode: 0644]