Home | History | Annotate | Download | only in Hexagon

Lines Matching defs:Phi

123     ///   R = phi ..., [ R.next, LatchBlock ]
191 /// The desired flow is: phi ---> bump -+-> comparison-in-latch.
193 /// +-> back to phi
198 /// phi -+-> bump ---> back to phi
340 MachineInstr *Phi = &*I;
342 // Have a PHI instruction. Get the operand that corresponds to the
344 // where the "reg" is defined by the PHI node we are looking at.
345 for (unsigned i = 1, n = Phi->getNumOperands(); i < n; i += 2) {
346 if (Phi->getOperand(i+1).getMBB() != Latch)
349 unsigned PhiOpReg = Phi->getOperand(i).getReg();
355 // If the register operand to the add is the PHI we're
358 if (MRI->getVRegDef(IndReg) == Phi) {
422 /// This function iterates over the phi nodes in the loop to check for
901 // This instruction has users, but if the only user is the phi node for the
902 // parent block, and the only use of that phi node is this instruction, then
903 // this instruction is dead: both it (and the phi node) can be removed.
923 // If the phi node has a user that is not MI, bail...
960 // This may also be a "instr -> phi -> instr" case which can
1257 // vreg1 = PHI ..., [ latch, vreg2 ]
1262 MachineInstr *Phi = &*I;
1264 // Have a PHI instruction.
1265 for (unsigned i = 1, n = Phi->getNumOperands(); i < n; i += 2) {
1266 if (Phi->getOperand(i+1).getMBB() != Latch)
1269 unsigned PhiReg = Phi->getOperand(i).getReg();
1275 // If the register operand to the add/sub is the PHI we are looking
1278 if (MRI->getVRegDef(IndReg) == Phi) {
1364 // Otherwise, if the register being compared comes out of a PHI node,
1448 // join at the newly created preheader. Inspect all PHI nodes from the
1449 // header and create appropriate corresponding PHI nodes in the preheader.
1455 const MCInstrDesc &PD = TII->get(TargetOpcode::PHI);
1464 // Copy all non-latch operands of a header's PHI node to the newly
1465 // created PHI node in the preheader.
1476 // Remove copied operands from the old PHI node and add the value
1477 // coming from the preheader's PHI.
1494 // In such a case we don't need any extra PHI nodes in the new preheader,