Lines Matching refs:LoadInst
57 if (auto *LI = dyn_cast<LoadInst>(I)) { in isOnlyCopiedFromConstantMemory()
255 if (auto *Load = dyn_cast<LoadInst>(Inst)) { in collectUsers()
284 if (auto *LT = dyn_cast<LoadInst>(I)) { in replace()
287 auto *NewI = new LoadInst(LT->getType(), V, "", LT->isVolatile(), in replace()
460 LoadInst *InstCombinerImpl::combineLoadToNewType(LoadInst &LI, Type *NewTy, in combineLoadToNewType()
473 LoadInst *NewLoad = Builder.CreateAlignedLoad( in combineLoadToNewType()
578 LoadInst &LI) { in combineLoadToOperationType()
610 LoadInst *NewLoad = IC.combineLoadToNewType(LI, CI->getDestTy()); in combineLoadToOperationType()
622 static Instruction *unpackLoadToAggregate(InstCombinerImpl &IC, LoadInst &LI) { in unpackLoadToAggregate()
638 LoadInst *NewLoad = IC.combineLoadToNewType(LI, ST->getTypeAtIndex(0U), in unpackLoadToAggregate()
681 LoadInst *NewLoad = IC.combineLoadToNewType(LI, ET, ".unpack"); in unpackLoadToAggregate()
915 static bool canSimplifyNullLoadOrGEP(LoadInst &LI, Value *Op) { in canSimplifyNullLoadOrGEP()
929 Instruction *InstCombinerImpl::visitLoadInst(LoadInst &LI) { in visitLoadInst()
957 combineMetadataForCSE(cast<LoadInst>(AvailableVal), &LI, false); in visitLoadInst()
1000 LoadInst *V1 = in visitLoadInst()
1003 LoadInst *V2 = in visitLoadInst()
1288 auto *LI = cast<LoadInst>(SI.getValueOperand()); in removeBitcastsFromLoadStoreOnMinMax()
1316 LoadInst *NewLI = IC.combineLoadToNewType(*LI, CmpLoadTy); in removeBitcastsFromLoadStoreOnMinMax()
1413 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { in visitStoreInst()