summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorMichael Zolotukhin <mzolotukhin@apple.com>2015-08-20 22:27:38 +0000
committerMichael Zolotukhin <mzolotukhin@apple.com>2015-08-20 22:27:38 +0000
commit2a3d99fedfa9ed911ed35753cfe490b885340877 (patch)
tree113dc21a843cf8fa027011d531ac3fd961a3b52d /llvm/lib/Transforms
parent075c6ee843d3f68dc1f91b5e14a1eda5ad2ccad1 (diff)
downloadbcm5719-llvm-2a3d99fedfa9ed911ed35753cfe490b885340877.tar.gz
bcm5719-llvm-2a3d99fedfa9ed911ed35753cfe490b885340877.zip
[LoopVectorize] Propagate 'nontemporal' attribute into vectorized instructions.
llvm-svn: 245632
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp3
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);
OpenPOWER on IntegriCloud