Home
last modified time | relevance | path

Searched refs:StoreSize (Results 1 – 25 of 34) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp31 uint64_t StoreSize = DL.getTypeSizeInBits(StoredTy).getFixedSize(); in canCoerceMustAliasedValueToLoad() local
34 if (llvm::alignTo(StoreSize, 8) != StoreSize) in canCoerceMustAliasedValueToLoad()
38 if (StoreSize < DL.getTypeSizeInBits(LoadTy).getFixedSize()) in canCoerceMustAliasedValueToLoad()
61 if (StoredNI && StoreSize != DL.getTypeSizeInBits(LoadTy).getFixedSize()) in canCoerceMustAliasedValueToLoad()
190 uint64_t StoreSize = WriteSizeInBits / 8; // Convert to bytes. in analyzeLoadFromClobberingWrite() local
198 StoreOffset + int64_t(StoreSize) < LoadOffset + int64_t(LoadSize)) in analyzeLoadFromClobberingWrite()
220 uint64_t StoreSize = in analyzeLoadFromClobberingStore() local
222 return analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, StorePtr, StoreSize, in analyzeLoadFromClobberingStore()
410 uint64_t StoreSize = in getStoreValueForLoadHelper() local
427 ShiftAmt = (StoreSize - LoadSize - Offset) * 8; in getStoreValueForLoadHelper()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64MachineScheduler.cpp56 int StoreSize = AArch64InstrInfo::getMemScale(MI) * Multiples; in mayOverlapWrite() local
58 return llabs(Off0 - Off1) < StoreSize; in mayOverlapWrite()
H A DAArch64StackTagging.cpp133 int64_t StoreSize = DL->getTypeStoreSize(SI->getOperand(0)->getType()); in addStore() local
134 if (!addRange(Offset, Offset + StoreSize, SI)) in addStore()
137 applyStore(IRB, Offset, Offset + StoreSize, SI->getOperand(0)); in addStore()
142 uint64_t StoreSize = cast<ConstantInt>(MSI->getLength())->getZExtValue(); in addMemSet() local
143 if (!addRange(Offset, Offset + StoreSize, MSI)) in addMemSet()
146 applyMemSet(IRB, Offset, Offset + StoreSize, in addMemSet()
H A DAArch64LoadStoreOptimizer.cpp625 int StoreSize = TII->getMemScale(StoreInst); in isLdOffsetInRangeOfSt() local
629 : AArch64InstrInfo::getLdStOffsetOp(StoreInst).getImm() * StoreSize; in isLdOffsetInRangeOfSt()
635 (UnscaledLdOffset + LoadSize <= (UnscaledStOffset + StoreSize)); in isLdOffsetInRangeOfSt()
1073 int StoreSize = TII->getMemScale(*StoreI); in promoteLoadFromStore() local
1084 if (LoadSize == StoreSize && (LoadSize == 4 || LoadSize == 8)) { in promoteLoadFromStore()
1117 assert(LoadSize <= StoreSize && "Invalid load size"); in promoteLoadFromStore()
1125 : AArch64InstrInfo::getLdStOffsetOp(*StoreI).getImm() * StoreSize; in promoteLoadFromStore()
1133 (UnscaledLdOffset + LoadSize) <= UnscaledStOffset + StoreSize) && in promoteLoadFromStore()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp549 if (StoreSize != Stride && StoreSize != -Stride) in isLegalStore()
760 unsigned StoreSize = 0; in processLoopStores() local
780 if (StoreSize != Stride && StoreSize != -Stride) in processLoopStores()
783 bool IsNegStride = StoreSize == -Stride; in processLoopStores()
786 const SCEV *StoreSizeSCEV = SE->getConstant(IntIdxTy, StoreSize); in processLoopStores()
1300 if (BP1 != BP2 || LoadSize != int64_t(StoreSize)) in loadAndStoreMayFormMemmove()
1302 if ((!IsNegStride && LoadOff < StoreOff + int64_t(StoreSize)) || in loadAndStoreMayFormMemmove()
1352 int64_t StoreSize = ConstStoreSize->getValue()->getZExtValue(); in processLoopStoreOfLoopLoad() local
1353 bool IsNegStride = StoreSize == -Stride; in processLoopStoreOfLoopLoad()
1486 if (StoreAlign.value() < StoreSize || LoadAlign.value() < StoreSize) in processLoopStoreOfLoopLoad()
[all …]
H A DMemCpyOptimizer.cpp177 TypeSize StoreSize = DL.getTypeStoreSize(SI->getOperand(0)->getType()); in addStore() local
178 assert(!StoreSize.isScalable() && "Can't track scalable-typed stores"); in addStore()
179 addRange(OffsetFromFirst, StoreSize.getFixedSize(), SI->getPointerOperand(), in addStore()
/llvm-project-15.0.7/llvm/test/Transforms/Util/
H A Dtrivial-auto-var-init-store.ll16 ; YAML-NEXT: - StoreSize: '4'
41 ; YAML-NEXT: - StoreSize: '4'
66 ; YAML-NEXT: - StoreSize: '4'
92 ; YAML-NEXT: - StoreSize: '4'
H A Dtrivial-auto-var-init-call.ll92 ; YAML-NEXT: - StoreSize: '32'
112 ; YAML-NEXT: - StoreSize: '32'
136 ; YAML-NEXT: - StoreSize: '32'
160 ; YAML-NEXT: - StoreSize: '32'
184 ; YAML-NEXT: - StoreSize: '32'
343 ; YAML-NEXT: - StoreSize: '1'
375 ; YAML-NEXT: - StoreSize: '1'
406 ; YAML-NEXT: - StoreSize: '1'
437 ; YAML-NEXT: - StoreSize: '1'
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DStackSlotColoring.cpp441 unsigned StoreSize = 0; in RemoveDeadStores() local
450 if (!(StoreReg = TII->isStoreToStackSlot(*NextMI, SecondSS, StoreSize))) in RemoveDeadStores()
453 LoadSize != StoreSize) in RemoveDeadStores()
H A DMachineFunction.cpp1449 uint64_t StoreSize = DL.getTypeStoreSize(A->getType()); in CanShareConstantPoolEntry() local
1450 if (StoreSize != DL.getTypeStoreSize(B->getType()) || StoreSize > 128) in CanShareConstantPoolEntry()
1453 Type *IntTy = IntegerType::get(A->getContext(), StoreSize*8); in CanShareConstantPoolEntry()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCHazardRecognizers.h73 uint64_t StoreSize[4]; variable
H A DPPCHazardRecognizers.cpp311 if (int64_t(StoreOffset[i]+StoreSize[i]) > LoadOffset) return true; in isLoadOfStoredAddress()
404 StoreSize[NumStores] = MO->getSize(); in EmitInstruction()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp1953 unsigned StoreSize = DL->getTypeStoreSize(SI->getValueOperand()->getType()); in isLegalStore() local
1954 if (StoreSize != unsigned(std::abs(Stride))) in isLegalStore()
1983 const SCEV *BECount, unsigned StoreSize, in mayLoopAccessLocation() argument
1995 StoreSize); in mayLoopAccessLocation()
2031 unsigned StoreSize = DL->getTypeStoreSize(SI->getValueOperand()->getType()); in processCopyingStore() local
2032 if (Stride != StoreSize) in processCopyingStore()
2068 if (StoreSize != 4 || DL->getTypeSizeInBits(BECountTy) > 32) { in processCopyingStore()
2087 StoreSize, *AA, Ignore1)) { in processCopyingStore()
2091 BECount, StoreSize, *AA, Ignore1)) { in processCopyingStore()
2134 StoreSize, *AA, Ignore2)) in processCopyingStore()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/AArch64/
H A Dmemsize-remarks.ll155 ; YAML-NEXT: - StoreSize: '1'
187 ; YAML-NEXT: - StoreSize: '1'
225 ; YAML-NEXT: - StoreSize: '1'
263 ; YAML-NEXT: - StoreSize: '1'
286 ; YAML-NEXT: - StoreSize: '1'
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLoads.cpp510 TypeSize StoreSize = DL.getTypeSizeInBits(Val->getType()); in getAvailableLoadStore() local
512 if (TypeSize::isKnownLE(LoadSize, StoreSize)) in getAvailableLoadStore()
H A DTargetTransformInfo.cpp1082 unsigned StoreSize, in getStoreVectorFactor() argument
1085 return TTIImpl->getStoreVectorFactor(VF, StoreSize, ChainSizeInBytes, VecTy); in getStoreVectorFactor()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.h122 unsigned getStoreVectorFactor(unsigned VF, unsigned StoreSize,
H A DAMDGPUTargetTransformInfo.cpp344 unsigned GCNTTIImpl::getStoreVectorFactor(unsigned VF, unsigned StoreSize, in getStoreVectorFactor() argument
347 unsigned VecRegBitWidth = VF * StoreSize; in getStoreVectorFactor()
349 return 128 / StoreSize; in getStoreVectorFactor()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp1469 TypeSize StoreSize = MemAccess->getMemoryVT().getStoreSize(); in storeLoadIsAligned() local
1475 if (MemAccess->getAlign().value() < StoreSize || in storeLoadIsAligned()
1480 if (MMO->getOffset() % StoreSize != 0) in storeLoadIsAligned()
1493 if (GA->getOffset() % StoreSize != 0) in storeLoadIsAligned()
1499 if (GV->getPointerAlignment(DL).value() < StoreSize) in storeLoadIsAligned()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86AvoidStoreForwardingBlocks.cpp620 int64_t StoreDispImm, unsigned StoreSize) { in isBlockingStore() argument
622 (StoreDispImm <= LoadDispImm + (LoadSize - StoreSize))); in isBlockingStore()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h1403 unsigned getStoreVectorFactor(unsigned VF, unsigned StoreSize,
1828 virtual unsigned getStoreVectorFactor(unsigned VF, unsigned StoreSize,
2440 unsigned getStoreVectorFactor(unsigned VF, unsigned StoreSize, in getStoreVectorFactor() argument
2443 return Impl.getStoreVectorFactor(VF, StoreSize, ChainSizeInBytes, VecTy); in getStoreVectorFactor()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprCXX.cpp561 CharUnits StoreSize = Store.second; in EmitNullBaseClassInitialization() local
562 llvm::Value *StoreSizeVal = CGF.CGM.getSize(StoreSize); in EmitNullBaseClassInitialization()
575 CharUnits StoreSize = Store.second; in EmitNullBaseClassInitialization() local
576 llvm::Value *StoreSizeVal = CGF.CGM.getSize(StoreSize); in EmitNullBaseClassInitialization()
/llvm-project-15.0.7/polly/lib/Transform/
H A DDeLICM.cpp1060 auto StoreSize = in collapseScalarsToStore() local
1078 if (MASize > StoreSize) { in collapseScalarsToStore()
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp3277 const uint64_t StoreSize = DL.getTypeStoreSize(CV->getType()); in emitGlobalConstantImpl() local
3279 if (StoreSize <= 8) { in emitGlobalConstantImpl()
3283 AP.OutStreamer->emitIntValue(CI->getZExtValue(), StoreSize); in emitGlobalConstantImpl()
3289 if (Size != StoreSize) in emitGlobalConstantImpl()
3290 AP.OutStreamer->emitZeros(Size - StoreSize); in emitGlobalConstantImpl()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DMemorySanitizer.cpp1153 unsigned StoreSize = DL.getTypeStoreSize(Shadow->getType()); in storeOrigin() local
1157 paintOrigin(IRB, updateOrigin(Origin, IRB), OriginPtr, StoreSize, in storeOrigin()
1178 paintOrigin(IRBNew, updateOrigin(Origin, IRBNew), OriginPtr, StoreSize, in storeOrigin()
4315 unsigned StoreSize = DL.getTypeStoreSize(Shadow->getType()); in visitCallBase() local
4316 MSV.paintOrigin(IRB, Origin, OriginBase, StoreSize, in visitCallBase()
5193 unsigned StoreSize = DL.getTypeStoreSize(Shadow->getType()); in visitCallBase() local
5194 MSV.paintOrigin(IRB, Origin, OriginBase, StoreSize, in visitCallBase()

12