Lines Matching defs:LoadedTy
851 /// the stored value. LoadedTy is the type of the load we want to replace and
856 Type *LoadedTy,
859 if (!CanCoerceMustAliasedValueToLoad(StoredVal, LoadedTy, DL))
866 uint64_t LoadSize = DL.getTypeSizeInBits(LoadedTy);
872 LoadedTy->getScalarType()->isPointerTy())
873 return new BitCastInst(StoredVal, LoadedTy, "", InsertPt);
881 Type *TypeToCastTo = LoadedTy;
889 if (LoadedTy->getScalarType()->isPointerTy())
890 StoredVal = new IntToPtrInst(StoredVal, LoadedTy, "", InsertPt);
923 if (LoadedTy == NewIntTy)
927 if (LoadedTy->getScalarType()->isPointerTy())
928 return new IntToPtrInst(StoredVal, LoadedTy, "inttoptr", InsertPt);
931 return new BitCastInst(StoredVal, LoadedTy, "bitcast", InsertPt);