Lines Matching refs:LoadInst
74 if (auto *LI = dyn_cast<LoadInst>(I)) { in isOnlyCopiedFromConstantGlobal()
274 if (isa<LoadInst>(Inst)) { in findLoadAndReplace()
299 if (auto *LT = dyn_cast<LoadInst>(I)) { in replace()
302 auto *NewI = new LoadInst(V); in replace()
452 static LoadInst *combineLoadToNewType(InstCombiner &IC, LoadInst &LI, Type *NewTy, in combineLoadToNewType()
468 LoadInst *NewLoad = IC.Builder.CreateAlignedLoad( in combineLoadToNewType()
610 static Instruction *combineLoadToOperationType(InstCombiner &IC, LoadInst &LI) { in combineLoadToOperationType()
643 LoadInst *NewLoad = combineLoadToNewType( in combineLoadToOperationType()
667 LoadInst *NewLoad = combineLoadToNewType(IC, LI, CI->getDestTy()); in combineLoadToOperationType()
678 static Instruction *unpackLoadToAggregate(InstCombiner &IC, LoadInst &LI) { in unpackLoadToAggregate()
695 LoadInst *NewLoad = combineLoadToNewType(IC, LI, ST->getTypeAtIndex(0U), in unpackLoadToAggregate()
744 LoadInst *NewLoad = combineLoadToNewType(IC, LI, ET, ".unpack"); in unpackLoadToAggregate()
978 static bool canSimplifyNullLoadOrGEP(LoadInst &LI, Value *Op) { in canSimplifyNullLoadOrGEP()
992 Instruction *InstCombiner::visitLoadInst(LoadInst &LI) { in visitLoadInst()
1028 combineMetadataForCSE(cast<LoadInst>(AvailableVal), &LI, false); in visitLoadInst()
1069 LoadInst *V1 = Builder.CreateLoad(SI->getOperand(1), in visitLoadInst()
1071 LoadInst *V2 = Builder.CreateLoad(SI->getOperand(2), in visitLoadInst()
1361 auto *LI = cast<LoadInst>(SI.getValueOperand()); in removeBitcastsFromLoadStoreOnMinMax()
1376 LoadInst *NewLI = combineLoadToNewType( in removeBitcastsFromLoadStoreOnMinMax()
1469 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { in visitStoreInst()