Lines Matching refs:LoadInst
60 if (auto *LI = dyn_cast<LoadInst>(I)) { in isOnlyCopiedFromConstantMemory()
265 if (auto *Load = dyn_cast<LoadInst>(Inst)) { in collectUsers()
294 if (auto *LT = dyn_cast<LoadInst>(I)) { in replace()
297 auto *NewI = new LoadInst(LT->getType(), V, "", LT->isVolatile(), in replace()
471 LoadInst *InstCombinerImpl::combineLoadToNewType(LoadInst &LI, Type *NewTy, in combineLoadToNewType()
484 LoadInst *NewLoad = Builder.CreateAlignedLoad( in combineLoadToNewType()
589 LoadInst &LI) { in combineLoadToOperationType()
621 LoadInst *NewLoad = IC.combineLoadToNewType(LI, CI->getDestTy()); in combineLoadToOperationType()
633 static Instruction *unpackLoadToAggregate(InstCombinerImpl &IC, LoadInst &LI) { in unpackLoadToAggregate()
650 LoadInst *NewLoad = IC.combineLoadToNewType(LI, ST->getTypeAtIndex(0U), in unpackLoadToAggregate()
697 LoadInst *NewLoad = IC.combineLoadToNewType(LI, ET, ".unpack"); in unpackLoadToAggregate()
935 static bool canSimplifyNullLoadOrGEP(LoadInst &LI, Value *Op) { in canSimplifyNullLoadOrGEP()
949 Instruction *InstCombinerImpl::visitLoadInst(LoadInst &LI) { in visitLoadInst()
977 combineMetadataForCSE(cast<LoadInst>(AvailableVal), &LI, false); in visitLoadInst()
1020 LoadInst *V1 = in visitLoadInst()
1023 LoadInst *V2 = in visitLoadInst()
1312 auto *LI = cast<LoadInst>(SI.getValueOperand()); in removeBitcastsFromLoadStoreOnMinMax()
1340 LoadInst *NewLI = IC.combineLoadToNewType(*LI, CmpLoadTy); in removeBitcastsFromLoadStoreOnMinMax()
1435 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { in visitStoreInst()