• Home
  • Raw
  • Download

Lines Matching refs:PN

129     bool ProcessBranchOnPHI(PHINode *PN);
379 if (PHINode *PN = dyn_cast<PHINode>(I)) { in ComputeValueKnownInPredecessors() local
380 for (unsigned i = 0, e = PN->getNumIncomingValues(); i != e; ++i) { in ComputeValueKnownInPredecessors()
381 Value *InVal = PN->getIncomingValue(i); in ComputeValueKnownInPredecessors()
383 Result.push_back(std::make_pair(KC, PN->getIncomingBlock(i))); in ComputeValueKnownInPredecessors()
386 PN->getIncomingBlock(i), BB); in ComputeValueKnownInPredecessors()
388 Result.push_back(std::make_pair(KC, PN->getIncomingBlock(i))); in ComputeValueKnownInPredecessors()
484 PHINode *PN = dyn_cast<PHINode>(Cmp->getOperand(0)); in ComputeValueKnownInPredecessors() local
485 if (PN && PN->getParent() == BB) { in ComputeValueKnownInPredecessors()
488 for (unsigned i = 0, e = PN->getNumIncomingValues(); i != e; ++i) { in ComputeValueKnownInPredecessors()
489 BasicBlock *PredBB = PN->getIncomingBlock(i); in ComputeValueKnownInPredecessors()
490 Value *LHS = PN->getIncomingValue(i); in ComputeValueKnownInPredecessors()
813 if (PHINode *PN = dyn_cast<PHINode>(CondInst)) in ProcessBlock() local
814 if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock()
815 return ProcessBranchOnPHI(PN); in ProcessBlock()
979 PHINode *PN = PHINode::Create(LI->getType(), std::distance(PB, PE), "", in SimplifyPartiallyRedundantLoad() local
981 PN->takeName(LI); in SimplifyPartiallyRedundantLoad()
982 PN->setDebugLoc(LI->getDebugLoc()); in SimplifyPartiallyRedundantLoad()
995 PN->addIncoming(I->second, I->first); in SimplifyPartiallyRedundantLoad()
1000 LI->replaceAllUsesWith(PN); in SimplifyPartiallyRedundantLoad()
1177 bool JumpThreading::ProcessBranchOnPHI(PHINode *PN) { in ProcessBranchOnPHI() argument
1178 BasicBlock *BB = PN->getParent(); in ProcessBranchOnPHI()
1189 for (unsigned i = 0, e = PN->getNumIncomingValues(); i != e; ++i) { in ProcessBranchOnPHI()
1190 BasicBlock *PredBB = PN->getIncomingBlock(i); in ProcessBranchOnPHI()
1317 PHINode *PN = dyn_cast<PHINode>(PNI); ++PNI) { in AddPHINodeEntriesForMappedBlock()
1320 Value *IV = PN->getIncomingValueForBlock(OldPred); in AddPHINodeEntriesForMappedBlock()
1329 PN->addIncoming(IV, NewPred); in AddPHINodeEntriesForMappedBlock()
1391 for (; PHINode *PN = dyn_cast<PHINode>(BI); ++BI) in ThreadEdge()
1392 ValueMapping[PN] = PN->getIncomingValueForBlock(PredBB); in ThreadEdge()
1536 for (; PHINode *PN = dyn_cast<PHINode>(BI); ++BI) in DuplicateCondBranchOnPHIIntoPred()
1537 ValueMapping[PN] = PN->getIncomingValueForBlock(PredBB); in DuplicateCondBranchOnPHIIntoPred()