Lines Matching refs:PHINode
133 isa<PHINode>(BBI); ++BBI) {
134 PHINode *PN = cast<PHINode>(BBI);
151 SmallVectorImpl<PHINode*> &PhiNodes) {
174 isa<PHINode>(BBI); ++BBI) {
175 PHINode *PN = cast<PHINode>(BBI);
190 if (!isa<PHINode>(Succ->begin())) return; // Quick exit if nothing to do
192 PHINode *PN;
194 (PN = dyn_cast<PHINode>(I)); ++I)
980 PHINode *PN;
982 (PN = dyn_cast<PHINode>(BBI)); ++BBI) {
1018 if (isa<PHINode>(I1) || !I1->isIdenticalToWhenDefined(I2) ||
1062 PHINode *PN;
1064 (PN = dyn_cast<PHINode>(BBI)); ++BBI) {
1093 PHINode *PN;
1095 (PN = dyn_cast<PHINode>(BBI)); ++BBI) {
1147 std::map<Value*, std::pair<Value*, PHINode*> > MapValueFromBB1ToBB2;
1151 if (PHINode *PN = dyn_cast<PHINode>(I)) {
1195 if (isa<PHINode>(I1) || isa<PHINode>(I2) ||
1252 PHINode *NewPN = PHINode::Create(DifferentOp1->getType(), 2,
1262 PHINode *OldPN = MapValueFromBB1ToBB2[I1].second;
1474 PHINode *PN = dyn_cast<PHINode>(I); ++I) {
1533 PHINode *PN = dyn_cast<PHINode>(I); ++I) {
1576 if (U->getParent() != BB || isa<PHINode>(U)) return false;
1591 PHINode *PN = dyn_cast<PHINode>(BI->getCondition());
1639 if (PHINode *PN = dyn_cast<PHINode>(BBI)) {
1685 static bool FoldTwoEntryPHINode(PHINode *PN, const DataLayout *TD) {
1706 for (BasicBlock::iterator I = BB->begin(); isa<PHINode>(I); ++NumPhis, ++I)
1717 for (BasicBlock::iterator II = BB->begin(); isa<PHINode>(II);) {
1718 PHINode *PN = cast<PHINode>(II++);
1734 PN = dyn_cast<PHINode>(BB->begin());
1797 while (PHINode *PN = dyn_cast<PHINode>(BB->begin())) {
1856 if (PHINode *TVPN = dyn_cast_or_null<PHINode>(TrueValue))
1859 if (PHINode *FVPN = dyn_cast_or_null<PHINode>(FalseValue))
2041 SmallVector<PHINode*, 4> PHIs;
2288 PHINode *NewPN = PHINode::Create(Type::getInt1Ty(BB->getContext()),
2354 isa<PHINode>(II); ++II, ++NumPhis)
2439 PHINode *PN;
2441 (PN = dyn_cast<PHINode>(II)); ++II) {
2607 if (isa<PHINode>(BB->begin()) || !ICI->hasOneUse()) return false;
2657 PHINode *PHIUse = dyn_cast<PHINode>(ICI->use_back());
2659 isa<PHINode>(++BasicBlock::iterator(PHIUse)))
2805 isa<PHINode>(BBI); ++BBI) {
2806 PHINode *PN = cast<PHINode>(BBI);
3045 if (isa<PHINode>(MaxBlock->begin()))
3150 isa<PHINode>(BBI); ++BBI) {
3152 cast<PHINode>(BBI)->removeIncomingValue(SI->getParent());
3214 static PHINode *FindPHIForConditionForwarding(ConstantInt *CaseValue,
3229 while (PHINode *PHI = dyn_cast<PHINode>(I++)) {
3248 typedef DenseMap<PHINode*, SmallVector<int,4> > ForwardingNodesMap;
3256 PHINode *PHI = FindPHIForConditionForwarding(CaseValue, CaseDest,
3267 PHINode *Phi = I->first;
3358 SmallVectorImpl<std::pair<PHINode*,Constant*> > &Res) {
3394 while (PHINode *PHI = dyn_cast<PHINode>(I++)) {
3611 const SmallDenseMap<PHINode*, Type*>& ResultTypes) {
3617 for (SmallDenseMap<PHINode*, Type*>::const_iterator I = ResultTypes.begin(),
3685 SmallDenseMap<PHINode*, ResultListTy> ResultLists;
3686 SmallDenseMap<PHINode*, Constant*> DefaultResults;
3687 SmallDenseMap<PHINode*, Type*> ResultTypes;
3688 SmallVector<PHINode*, 4> PHIs;
3698 typedef SmallVector<std::pair<PHINode*, Constant*>, 4> ResultsTy;
3713 SmallVector<std::pair<PHINode*, Constant*>, 4> DefaultResultsList;
3718 PHINode *PHI = DefaultResultsList[I].first;
3749 PHINode *PHI = PHIs[I];
3966 if (PHINode *PN = dyn_cast<PHINode>(BI->getCondition()))
4026 PHINode *PHI = dyn_cast<PHINode>(i); ++i)
4086 if (PHINode *PN = dyn_cast<PHINode>(BB->begin()))