/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | MemCpyOptimizer.cpp | 1137 bool MemCpyOptPass::processMemSetMemCpyDependence(MemCpyInst *MemCpy, in processMemSetMemCpyDependence() argument 1140 if (MemSet->getDest() != MemCpy->getDest()) in processMemSetMemCpyDependence() 1145 if (!AA->isNoAlias(MemoryLocation(MemCpy->getSource(), in processMemSetMemCpyDependence() 1147 MemoryLocation(MemCpy->getDest(), in processMemSetMemCpyDependence() 1157 MSSA->getMemoryAccess(MemCpy))) { in processMemSetMemCpyDependence() 1164 MemoryLocation::getForDest(MemSet), false, MemCpy->getIterator(), in processMemSetMemCpyDependence() 1165 MemCpy->getParent()); in processMemSetMemCpyDependence() 1171 Value *Dest = MemCpy->getRawDest(); in processMemSetMemCpyDependence() 1173 Value *SrcSize = MemCpy->getLength(); in processMemSetMemCpyDependence() 1175 if (mayBeVisibleThroughUnwinding(Dest, MemSet, MemCpy)) in processMemSetMemCpyDependence() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | MemCpyOptimizer.cpp | 1006 bool MemCpyOptPass::processMemSetMemCpyDependence(MemCpyInst *MemCpy, in processMemSetMemCpyDependence() argument 1009 if (MemSet->getDest() != MemCpy->getDest()) in processMemSetMemCpyDependence() 1015 MemCpy->getIterator(), MemCpy->getParent()); in processMemSetMemCpyDependence() 1020 Value *Dest = MemCpy->getRawDest(); in processMemSetMemCpyDependence() 1022 Value *SrcSize = MemCpy->getLength(); in processMemSetMemCpyDependence() 1029 std::max(MemSet->getDestAlignment(), MemCpy->getDestAlignment()); in processMemSetMemCpyDependence() 1034 IRBuilder<> Builder(MemCpy); in processMemSetMemCpyDependence() 1088 bool MemCpyOptPass::performMemCpyToMemSetOptzn(MemCpyInst *MemCpy, in performMemCpyToMemSetOptzn() argument 1094 if (!AA.isMustAlias(MemSet->getRawDest(), MemCpy->getRawSource())) in performMemCpyToMemSetOptzn() 1104 ConstantInt *CopySize = cast<ConstantInt>(MemCpy->getLength()); in performMemCpyToMemSetOptzn() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | MemCpyOptimizer.cpp | 1046 bool MemCpyOptPass::processMemSetMemCpyDependence(MemCpyInst *MemCpy, in processMemSetMemCpyDependence() argument 1049 if (MemSet->getDest() != MemCpy->getDest()) in processMemSetMemCpyDependence() 1055 MemCpy->getIterator(), MemCpy->getParent()); in processMemSetMemCpyDependence() 1060 Value *Dest = MemCpy->getRawDest(); in processMemSetMemCpyDependence() 1062 Value *SrcSize = MemCpy->getLength(); in processMemSetMemCpyDependence() 1069 std::max(MemSet->getAlignment(), MemCpy->getAlignment()); in processMemSetMemCpyDependence() 1074 IRBuilder<> Builder(MemCpy); in processMemSetMemCpyDependence() 1111 bool MemCpyOptPass::performMemCpyToMemSetOptzn(MemCpyInst *MemCpy, in performMemCpyToMemSetOptzn() argument 1114 if (MemSet->getRawDest() != MemCpy->getRawSource()) in performMemCpyToMemSetOptzn() 1117 ConstantInt *CopySize = cast<ConstantInt>(MemCpy->getLength()); in performMemCpyToMemSetOptzn() [all …]
|
/external/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
D | MemCpyOptimizer.h | 71 bool processMemSetMemCpyDependence(MemCpyInst *MemCpy, MemSetInst *MemSet); 72 bool performMemCpyToMemSetOptzn(MemCpyInst *MemCpy, MemSetInst *MemSet);
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 318 } else if (auto *MemCpy = dyn_cast<MemTransferInst>(I)) { in replace() local 319 auto *SrcV = getReplacement(MemCpy->getRawSource()); in replace() 323 assert(getReplacement(MemCpy->getRawDest()) && in replace() 328 IC.Builder.SetInsertPoint(MemCpy); in replace() 330 MemCpy->getIntrinsicID(), MemCpy->getRawDest(), MemCpy->getDestAlign(), in replace() 331 SrcV, MemCpy->getSourceAlign(), MemCpy->getLength(), in replace() 332 MemCpy->isVolatile()); in replace() 334 MemCpy->getAAMetadata(AAMD); in replace() 338 IC.eraseInstFromFunction(*MemCpy); in replace() 339 WorkMap[MemCpy] = NewI; in replace()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 886 MemCpyInst *MemCpy = cast<MemCpyInst>(Intr); in handleAlloca() local 887 Builder.CreateMemCpy(MemCpy->getRawDest(), MemCpy->getDestAlign(), in handleAlloca() 888 MemCpy->getRawSource(), MemCpy->getSourceAlign(), in handleAlloca() 889 MemCpy->getLength(), MemCpy->isVolatile()); in handleAlloca()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 800 MemCpyInst *MemCpy = cast<MemCpyInst>(Intr); in handleAlloca() local 801 Builder.CreateMemCpy(MemCpy->getRawDest(), MemCpy->getRawSource(), in handleAlloca() 802 MemCpy->getLength(), MemCpy->getAlignment(), in handleAlloca() 803 MemCpy->isVolatile()); in handleAlloca()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | LowerMemIntrinsics.h | 45 void expandMemCpyAsLoop(MemCpyInst *MemCpy, const TargetTransformInfo &TTI);
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 1031 MemCpyInst *MemCpy = cast<MemCpyInst>(Intr); in handleAlloca() local 1032 Builder.CreateMemCpy(MemCpy->getRawDest(), MemCpy->getDestAlign(), in handleAlloca() 1033 MemCpy->getRawSource(), MemCpy->getSourceAlign(), in handleAlloca() 1034 MemCpy->getLength(), MemCpy->isVolatile()); in handleAlloca()
|
/external/llvm-project/llvm/include/llvm/Transforms/Utils/ |
D | LowerMemIntrinsics.h | 45 void expandMemCpyAsLoop(MemCpyInst *MemCpy, const TargetTransformInfo &TTI);
|
/external/llvm-project/llvm/test/Analysis/BasicAA/ |
D | phi-values-usage.ll | 11 ; CHECK-MEMCPY: Executing Pass 'MemCpy Optimization' 12 ; CHECK-MEMCPY-DAG: Freeing Pass 'MemCpy Optimization'
|
/external/llvm/test/Transforms/MemCpyOpt/ |
D | lifetime.ll | 3 ; performCallSlotOptzn in MemCpy should not exchange the calls to
|
/external/llvm-project/llvm/test/Transforms/MemCpyOpt/ |
D | lifetime.ll | 5 ; performCallSlotOptzn in MemCpy should not exchange the calls to
|
D | invariant.start.ll | 2 ; MemCpy optimizations should take place even in presence of invariant.start
|
/external/llvm/test/Transforms/InstCombine/ |
D | simplify-libcalls.ll | 117 define i32 @MemCpy() { 128 ; CHECK-LABEL: @MemCpy(
|
/external/llvm-project/llvm/test/Transforms/InstCombine/ |
D | simplify-libcalls.ll | 117 define i32 @MemCpy() { 128 ; CHECK-LABEL: @MemCpy(
|
/external/llvm/test/Feature/ |
D | optnone-opt.ll | 45 ; OPT-O1-DAG: Skipping pass 'MemCpy Optimization'
|
/external/llvm/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 816 Value *MemCpy = M->getOrInsertFunction( in emitMemCpyChk() local 822 CallInst *CI = B.CreateCall(MemCpy, {Dst, Src, Len, ObjSize}); in emitMemCpyChk() 823 if (const Function *F = dyn_cast<Function>(MemCpy->stripPointerCasts())) in emitMemCpyChk()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 1101 FunctionCallee MemCpy = M->getOrInsertFunction( in emitMemCpyChk() local 1107 CallInst *CI = B.CreateCall(MemCpy, {Dst, Src, Len, ObjSize}); in emitMemCpyChk() 1109 dyn_cast<Function>(MemCpy.getCallee()->stripPointerCasts())) in emitMemCpyChk()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 916 FunctionCallee MemCpy = M->getOrInsertFunction( in emitMemCpyChk() local 922 CallInst *CI = B.CreateCall(MemCpy, {Dst, Src, Len, ObjSize}); in emitMemCpyChk() 924 dyn_cast<Function>(MemCpy.getCallee()->stripPointerCasts())) in emitMemCpyChk()
|
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/ |
D | ir_builder_mixin.h | 171 llvm::CallInst* MemCpy(Args&&... args) { in MemCpy() function
|
/external/llvm-project/llvm/test/Other/ |
D | opt-LTO-pipeline.ll | 117 ; CHECK-NEXT: MemCpy Optimization
|
D | opt-O2-pipeline.ll | 152 ; CHECK-NEXT: MemCpy Optimization
|
D | opt-Os-pipeline.ll | 138 ; CHECK-NEXT: MemCpy Optimization
|
/external/tensorflow/tensorflow/compiler/xla/service/cpu/ |
D | ir_emitter.cc | 482 MemCpy(program_buffer_address, /*DstAlign=*/llvm::Align(1), in EmitXfeedTransfer() 487 MemCpy(acquired_pointer, /*DstAlign=*/llvm::Align(1), in EmitXfeedTransfer() 577 MemCpy(destination_addresses[i], in HandleSort() 1094 MemCpy(operand_ptrs.back(), /*DstAlign=*/llvm::Align(1), in_ptr, in HandleAllReduceSingleReplica() 3187 MemCpy(destination_value, /*DstAlign=*/llvm::Align(1), source_value, in EmitMemcpy()
|