[LoopVectorize] Propagate 'nontemporal' attribute into vectorized instructions.
[oota-llvm.git] / lib / Transforms / Vectorize / LoopVectorize.cpp
index e131cc02e3781929e89c394409dbbcffccfc0690..9166d9e233e04778bf3f3853d30982a2e2d63c0e 100644 (file)
@@ -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);