Searched refs:cpyDest (Results 1 – 3 of 3) sorted by relevance
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | MemCpyOptimizer.cpp | 561 Value *cpyDest, Value *cpySrc, in performCallSlotOptzn() argument 602 if (AllocaInst *A = dyn_cast<AllocaInst>(cpyDest)) { in performCallSlotOptzn() 613 } else if (Argument *A = dyn_cast<Argument>(cpyDest)) { in performCallSlotOptzn() 656 if (Instruction *cpyDestInst = dyn_cast<Instruction>(cpyDest)) in performCallSlotOptzn() 665 if (AA.getModRefInfo(C, cpyDest, srcSize) != AliasAnalysis::NoModRef) in performCallSlotOptzn() 672 if (cpySrc->getType() != cpyDest->getType()) in performCallSlotOptzn() 673 cpyDest = CastInst::CreatePointerCast(cpyDest, cpySrc->getType(), in performCallSlotOptzn() 674 cpyDest->getName(), C); in performCallSlotOptzn() 676 if (CS.getArgument(i)->getType() == cpyDest->getType()) in performCallSlotOptzn() 677 CS.setArgument(i, cpyDest); in performCallSlotOptzn() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | MemCpyOptimizer.cpp | 803 bool MemCpyOptPass::performCallSlotOptzn(Instruction *cpy, Value *cpyDest, in performCallSlotOptzn() argument 848 if (AllocaInst *A = dyn_cast<AllocaInst>(cpyDest)) { in performCallSlotOptzn() 859 } else if (Argument *A = dyn_cast<Argument>(cpyDest)) { in performCallSlotOptzn() 893 if (!isDestSufficientlyAligned && !isa<AllocaInst>(cpyDest)) in performCallSlotOptzn() 936 if (Instruction *cpyDestInst = dyn_cast<Instruction>(cpyDest)) in performCallSlotOptzn() 945 ModRefInfo MR = AA.getModRefInfo(C, cpyDest, srcSize); in performCallSlotOptzn() 948 MR = AA.callCapturesBefore(C, cpyDest, srcSize, &DT); in performCallSlotOptzn() 955 cpyDest->getType()->getPointerAddressSpace()) in performCallSlotOptzn() 967 Value *Dest = cpySrc->getType() == cpyDest->getType() ? cpyDest in performCallSlotOptzn() 968 : CastInst::CreatePointerCast(cpyDest, cpySrc->getType(), in performCallSlotOptzn() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | MemCpyOptimizer.cpp | 764 bool MemCpyOptPass::performCallSlotOptzn(Instruction *cpy, Value *cpyDest, in performCallSlotOptzn() argument 809 if (AllocaInst *A = dyn_cast<AllocaInst>(cpyDest)) { in performCallSlotOptzn() 820 } else if (Argument *A = dyn_cast<Argument>(cpyDest)) { in performCallSlotOptzn() 854 if (!isDestSufficientlyAligned && !isa<AllocaInst>(cpyDest)) in performCallSlotOptzn() 897 if (Instruction *cpyDestInst = dyn_cast<Instruction>(cpyDest)) in performCallSlotOptzn() 906 ModRefInfo MR = AA.getModRefInfo(C, cpyDest, srcSize); in performCallSlotOptzn() 909 MR = AA.callCapturesBefore(C, cpyDest, srcSize, &DT); in performCallSlotOptzn() 917 Value *Dest = cpySrc->getType() == cpyDest->getType() ? cpyDest in performCallSlotOptzn() 918 : CastInst::CreatePointerCast(cpyDest, cpySrc->getType(), in performCallSlotOptzn() 919 cpyDest->getName(), C); in performCallSlotOptzn() [all …]
|