Lines Matching defs:phi
175 // Cleanup PHI nodes.
178 // Prune unneeded PHI entries.
181 MachineBasicBlock::iterator phi = BB->begin();
182 while (phi != BB->end() && phi->isPHI()) {
183 for (unsigned i = phi->getNumOperands() - 1; i >= 2; i-=2)
184 if (!preds.count(phi->getOperand(i).getMBB())) {
185 phi->RemoveOperand(i);
186 phi->RemoveOperand(i-1);
190 if (phi->getNumOperands() == 3) {
191 unsigned Input = phi->getOperand(1).getReg();
192 unsigned Output = phi->getOperand(0).getReg();
194 MachineInstr* temp = phi;
195 ++phi;
208 ++phi;