Lines Matching defs:Ld
738 if (LoadSDNode *LD = dyn_cast<LoadSDNode>(Op)) {
739 EVT MemVT = LD->getMemoryVT();
740 ISD::LoadExtType ExtType = ISD::isNON_EXTLoad(LD)
743 : LD->getExtensionType();
746 LD->getChain(), LD->getBasePtr(),
747 LD->getPointerInfo(),
748 MemVT, LD->isVolatile(),
749 LD->isNonTemporal(), LD->getAlignment());
962 LoadSDNode *LD = cast<LoadSDNode>(N);
963 EVT MemVT = LD->getMemoryVT();
964 ISD::LoadExtType ExtType = ISD::isNON_EXTLoad(LD)
967 : LD->getExtensionType();
969 LD->getChain(), LD->getBasePtr(),
970 LD->getPointerInfo(),
971 MemVT, LD->isVolatile(),
972 LD->isNonTemporal(), LD->getAlignment());
5745 // bitconvert(build_pair(ld, ld)) -> ld iff load locations are consecutive.
6982 if (LoadSDNode *LD = dyn_cast<LoadSDNode>(Use)) {
6983 if (LD->isIndexed() || LD->getBasePtr().getNode() != N)
7029 if (LoadSDNode *LD = dyn_cast<LoadSDNode>(N)) {
7030 if (LD->isIndexed())
7032 VT = LD->getMemoryVT();
7036 Ptr = LD->getBasePtr();
7260 if (LoadSDNode *LD = dyn_cast<LoadSDNode>(N)) {
7261 if (LD->isIndexed())
7263 VT = LD->getMemoryVT();
7267 Ptr = LD->getBasePtr();
7378 LoadSDNode *LD = cast<LoadSDNode>(N);
7379 SDValue Chain = LD->getChain();
7380 SDValue Ptr = LD->getBasePtr();
7385 if (!LD->isVolatile()) {
7436 if (ISD::isNormalLoad(N) && !LD->isVolatile()) {
7446 if (OptLevel != CodeGenOpt::None && LD->isUnindexed()) {
7448 if (Align > LD->getMemOperand()->getBaseAlignment()) {
7450 DAG.getExtLoad(LD->getExtensionType(), SDLoc(N),
7451 LD->getValueType(0),
7452 Chain, Ptr, LD->getPointerInfo(),
7453 LD->getMemoryVT(),
7454 LD->isVolatile(), LD->isNonTemporal(), Align);
7469 if (LD->getExtensionType() == ISD::NON_EXTLOAD) {
7470 ReplLoad = DAG.getLoad(N->getValueType(0), SDLoc(LD),
7471 BetterChain, Ptr, LD->getPointerInfo(),
7472 LD->isVolatile(), LD->isNonTemporal(),
7473 LD->isInvariant(), LD->getAlignment());
7475 ReplLoad = DAG.getExtLoad(LD->getExtensionType(), SDLoc(LD),
7476 LD->getValueType(0),
7477 BetterChain, Ptr, LD->getPointerInfo(),
7478 LD->getMemoryVT(),
7479 LD->isVolatile(),
7480 LD->isNonTemporal(),
7481 LD->getAlignment());
7518 LoadSDNode *LD = cast<LoadSDNode>(V->getOperand(0));
7519 if (LD->getBasePtr() != Ptr) return Result; // Not from same pointer.
7523 if (LD == Chain.getNode())
7530 if (Chain->getOperand(i).getNode() == LD) {
7683 LoadSDNode *LD = cast<LoadSDNode>(N0);
7684 if (LD->getBasePtr() != Ptr ||
7685 LD->getPointerInfo().getAddrSpace() !=
7726 unsigned NewAlign = MinAlign(LD->getAlignment(), PtrOff);
7731 SDValue NewPtr = DAG.getNode(ISD::ADD, SDLoc(LD),
7735 LD->getChain(), NewPtr,
7736 LD->getPointerInfo().getWithOffset(PtrOff),
7737 LD->isVolatile(), LD->isNonTemporal(),
7738 LD->isInvariant(), NewAlign);
7770 LoadSDNode *LD = cast<LoadSDNode>(Value);
7771 EVT VT = LD->getMemoryVT();
7774 LD->isNonTemporal() ||
7776 LD->getPointerInfo().getAddrSpace() != 0 ||
7787 unsigned LDAlign = LD->getAlignment();
7795 LD->getChain(), LD->getBasePtr(),
7796 LD->getPointerInfo(),
8045 for (unsigned ld = 0, lde = AliasLoadNodes.size(); ld < lde; ++ld)
8046 if (isAlias(AliasLoadNodes[ld], StoreNodes[i].MemNode)) {
8205 LoadSDNode *Ld = dyn_cast<LoadSDNode>(St->getValue());
8206 if (!Ld) break;
8209 if (!Ld->hasNUsesOfValue(1, 0))
8213 if (Ld->getAlignment() != St->getAlignment())
8217 if (Ld->isVolatile() || Ld->isIndexed())
8221 if (Ld->getExtensionType() != ISD::NON_EXTLOAD)
8225 if (Ld->getMemoryVT() != MemVT)
8228 BaseIndexOffset LdPtr = BaseIndexOffset::match(Ld->getBasePtr());
8240 LoadNodes.push_back(MemOpLink(Ld, LdPtr.Offset, 0));
8340 LoadSDNode *Ld = cast<LoadSDNode>(LoadNodes[0].MemNode);
8341 DAG.ReplaceAllUsesOfValueWith(SDValue(Ld, 1),
8348 LoadSDNode *Ld = cast<LoadSDNode>(LoadNodes[i].MemNode);
8349 DAG.ReplaceAllUsesOfValueWith(SDValue(Ld, 1), Ld->getChain());
8546 if (LoadSDNode *Ld = dyn_cast<LoadSDNode>(Value)) {
8547 if (Ld->getBasePtr() == Ptr && ST->getMemoryVT() == Ld->getMemoryVT() &&
8551 Chain.reachesChainWithoutSideEffects(SDValue(Ld, 1))) {