Index: lib/Transforms/Utils/Local.cpp =================================================================== --- lib/Transforms/Utils/Local.cpp +++ lib/Transforms/Utils/Local.cpp @@ -1970,6 +1970,7 @@ NewCall->setCallingConv(II->getCallingConv()); NewCall->setAttributes(II->getAttributes()); NewCall->setDebugLoc(II->getDebugLoc()); + NewCall->copyMetadata(*II, LLVMContext::MD_mem_parallel_loop_access); II->replaceAllUsesWith(NewCall); // Follow the call by a branch to the normal destination.