Home
last modified time | relevance | path

Searched refs:FirstLI (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp277 LoadInst *FirstLI = cast<LoadInst>(PN.getIncomingValue(0)); in FoldPHIArgLoadIntoPHI() local
281 if (FirstLI->isAtomic()) in FoldPHIArgLoadIntoPHI()
289 bool isVolatile = FirstLI->isVolatile(); in FoldPHIArgLoadIntoPHI()
290 unsigned LoadAlignment = FirstLI->getAlignment(); in FoldPHIArgLoadIntoPHI()
291 unsigned LoadAddrSpace = FirstLI->getPointerAddressSpace(); in FoldPHIArgLoadIntoPHI()
295 if (FirstLI->getParent() != PN.getIncomingBlock(0) || in FoldPHIArgLoadIntoPHI()
296 !isSafeAndProfitableToSinkLoad(FirstLI)) in FoldPHIArgLoadIntoPHI()
303 FirstLI->getParent()->getTerminator()->getNumSuccessors() != 1) in FoldPHIArgLoadIntoPHI()
337 PHINode *NewPN = PHINode::Create(FirstLI->getOperand(0)->getType(), in FoldPHIArgLoadIntoPHI()
341 Value *InVal = FirstLI->getOperand(0); in FoldPHIArgLoadIntoPHI()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp544 LoadInst *FirstLI = cast<LoadInst>(PN.getIncomingValue(0)); in FoldPHIArgLoadIntoPHI() local
548 if (FirstLI->isAtomic()) in FoldPHIArgLoadIntoPHI()
556 bool isVolatile = FirstLI->isVolatile(); in FoldPHIArgLoadIntoPHI()
557 MaybeAlign LoadAlignment(FirstLI->getAlignment()); in FoldPHIArgLoadIntoPHI()
558 unsigned LoadAddrSpace = FirstLI->getPointerAddressSpace(); in FoldPHIArgLoadIntoPHI()
562 if (FirstLI->getParent() != PN.getIncomingBlock(0) || in FoldPHIArgLoadIntoPHI()
563 !isSafeAndProfitableToSinkLoad(FirstLI)) in FoldPHIArgLoadIntoPHI()
570 FirstLI->getParent()->getTerminator()->getNumSuccessors() != 1) in FoldPHIArgLoadIntoPHI()
604 PHINode *NewPN = PHINode::Create(FirstLI->getOperand(0)->getType(), in FoldPHIArgLoadIntoPHI()
608 Value *InVal = FirstLI->getOperand(0); in FoldPHIArgLoadIntoPHI()
[all …]