diff options
author | Michael Zolotukhin <mzolotukhin@apple.com> | 2015-08-20 22:27:38 +0000 |
---|---|---|
committer | Michael Zolotukhin <mzolotukhin@apple.com> | 2015-08-20 22:27:38 +0000 |
commit | 2a3d99fedfa9ed911ed35753cfe490b885340877 (patch) | |
tree | 113dc21a843cf8fa027011d531ac3fd961a3b52d /llvm/lib | |
parent | 075c6ee843d3f68dc1f91b5e14a1eda5ad2ccad1 (diff) | |
download | bcm5719-llvm-2a3d99fedfa9ed911ed35753cfe490b885340877.tar.gz bcm5719-llvm-2a3d99fedfa9ed911ed35753cfe490b885340877.zip |
[LoopVectorize] Propagate 'nontemporal' attribute into vectorized instructions.
llvm-svn: 245632
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index e131cc02e37..9166d9e233e 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -552,7 +552,8 @@ static void propagateMetadata(Instruction *To, const Instruction *From) { if (Kind != LLVMContext::MD_tbaa && Kind != LLVMContext::MD_alias_scope && Kind != LLVMContext::MD_noalias && - Kind != LLVMContext::MD_fpmath) + Kind != LLVMContext::MD_fpmath && + Kind != LLVMContext::MD_nontemporal) continue; To->setMetadata(Kind, M.second); |