diff options
author | Philip Reames <listmail@philipreames.com> | 2019-09-04 18:27:31 +0000 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2019-09-04 18:27:31 +0000 |
commit | 4228245e41197528c3aeb7f6dbf03b6e873d16af (patch) | |
tree | 54f225705975f65dbc0e86e823dee64d56d9bac6 /llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp | |
parent | 3b705ef712cf92fdcbc9fc0abed254b32d615397 (diff) | |
download | bcm5719-llvm-4228245e41197528c3aeb7f6dbf03b6e873d16af.tar.gz bcm5719-llvm-4228245e41197528c3aeb7f6dbf03b6e873d16af.zip |
[NFC] Switch last couple of invariant_load checks to use hasMetadata
llvm-svn: 370948
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp b/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp index a5b862bf930..5f97740a9c6 100644 --- a/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp @@ -665,7 +665,7 @@ Vectorizer::getVectorizablePrefix(ArrayRef<Instruction *> Chain) { // We can ignore the alias if the we have a load store pair and the load // is known to be invariant. The load cannot be clobbered by the store. auto IsInvariantLoad = [](const LoadInst *LI) -> bool { - return LI->getMetadata(LLVMContext::MD_invariant_load); + return LI->hasMetadata(LLVMContext::MD_invariant_load); }; // We can ignore the alias as long as the load comes before the store, |