Home
last modified time | relevance | path

Searched refs:UsePhi (Results 1 – 3 of 3) sorted by relevance

/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp1255 if (PHINode *UsePhi = dyn_cast<PHINode>(DU.NarrowUse)) { in widenIVUse() local
1256 if (LI->getLoopFor(UsePhi->getParent()) != L) { in widenIVUse()
1260 if (UsePhi->getNumOperands() != 1) in widenIVUse()
1266 if (isa<CatchSwitchInst>(UsePhi->getParent()->getTerminator())) in widenIVUse()
1270 PHINode::Create(DU.WideDef->getType(), 1, UsePhi->getName() + ".wide", in widenIVUse()
1271 UsePhi); in widenIVUse()
1272 WidePhi->addIncoming(DU.WideDef, UsePhi->getIncomingBlock(0)); in widenIVUse()
1275 UsePhi->replaceAllUsesWith(Trunc); in widenIVUse()
1276 DeadInsts.emplace_back(UsePhi); in widenIVUse()
1277 DEBUG(dbgs() << "INDVARS: Widen lcssa phi " << *UsePhi in widenIVUse()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DMemorySSAUpdater.cpp171 if (MemoryPhi *UsePhi = dyn_cast<MemoryPhi>(&*U)) { in recursePhi() local
172 auto OperRange = UsePhi->operands(); in recursePhi()
173 tryRemoveTrivialPhi(UsePhi, OperRange); in recursePhi()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp1378 if (PHINode *UsePhi = dyn_cast<PHINode>(DU.NarrowUse)) { in widenIVUse() local
1379 if (LI->getLoopFor(UsePhi->getParent()) != L) { in widenIVUse()
1383 if (UsePhi->getNumOperands() != 1) in widenIVUse()
1389 if (isa<CatchSwitchInst>(UsePhi->getParent()->getTerminator())) in widenIVUse()
1393 PHINode::Create(DU.WideDef->getType(), 1, UsePhi->getName() + ".wide", in widenIVUse()
1394 UsePhi); in widenIVUse()
1395 WidePhi->addIncoming(DU.WideDef, UsePhi->getIncomingBlock(0)); in widenIVUse()
1398 UsePhi->replaceAllUsesWith(Trunc); in widenIVUse()
1399 DeadInsts.emplace_back(UsePhi); in widenIVUse()
1400 LLVM_DEBUG(dbgs() << "INDVARS: Widen lcssa phi " << *UsePhi << " to " in widenIVUse()