Lines Matching refs:PHINode
82 if (PHINode *P = dyn_cast<PHINode>(V)) {
86 PHINode *Q =
87 PHINode::Create(Int32Ty, P->getNumIncomingValues(), P->getName(), P);
102 typedef SmallPtrSet<const PHINode *, 8> PHINodeSet;
104 // A PHINode is Promotable if:
106 // 2. All of its uses are ReturnInt, CallInst, PHINode, or DbgInfoIntrinsic
109 // CallInst or PHINode AND
110 // 4. All of its PHINode uses are Promotable AND
111 // 5. All of its PHINode operands are Promotable
117 if (const PHINode *P = dyn_cast<PHINode>(&I))
121 SmallVector<const PHINode *, 8> ToRemove;
125 return isa<ReturnInst>(V) || isa<CallInst>(V) || isa<PHINode>(V) ||
130 isa<PHINode>(V);
141 const PHINode *Phi = dyn_cast<PHINode>(V);
199 // Presently, we only know how to handle PHINode, Constant, and Arguments.
203 if (!isa<PHINode>(V) && !isa<Constant>(V) && !isa<Argument>(V))
207 if (const PHINode *P = dyn_cast<PHINode>(V))