Lines Matching refs:FirstLI
287 LoadInst *FirstLI = cast<LoadInst>(PN.getIncomingValue(0)); in FoldPHIArgLoadIntoPHI() local
291 if (FirstLI->isAtomic()) in FoldPHIArgLoadIntoPHI()
299 bool isVolatile = FirstLI->isVolatile(); in FoldPHIArgLoadIntoPHI()
300 unsigned LoadAlignment = FirstLI->getAlignment(); in FoldPHIArgLoadIntoPHI()
301 unsigned LoadAddrSpace = FirstLI->getPointerAddressSpace(); in FoldPHIArgLoadIntoPHI()
305 if (FirstLI->getParent() != PN.getIncomingBlock(0) || in FoldPHIArgLoadIntoPHI()
306 !isSafeAndProfitableToSinkLoad(FirstLI)) in FoldPHIArgLoadIntoPHI()
313 FirstLI->getParent()->getTerminator()->getNumSuccessors() != 1) in FoldPHIArgLoadIntoPHI()
347 PHINode *NewPN = PHINode::Create(FirstLI->getOperand(0)->getType(), in FoldPHIArgLoadIntoPHI()
351 Value *InVal = FirstLI->getOperand(0); in FoldPHIArgLoadIntoPHI()
368 NewLI->setMetadata(ID, FirstLI->getMetadata(ID)); in FoldPHIArgLoadIntoPHI()
396 NewLI->setDebugLoc(FirstLI->getDebugLoc()); in FoldPHIArgLoadIntoPHI()