Searched refs:UsePhi (Results 1 – 3 of 3) sorted by relevance
1255 if (PHINode *UsePhi = dyn_cast<PHINode>(DU.NarrowUse)) { in widenIVUse() local1256 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()
171 if (MemoryPhi *UsePhi = dyn_cast<MemoryPhi>(&*U)) { in recursePhi() local172 auto OperRange = UsePhi->operands(); in recursePhi()173 tryRemoveTrivialPhi(UsePhi, OperRange); in recursePhi()
1378 if (PHINode *UsePhi = dyn_cast<PHINode>(DU.NarrowUse)) { in widenIVUse() local1379 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()