Lines Matching refs:LoopVal

37                        unsigned &InitVal, unsigned &LoopVal) {  in getPhiRegs()  argument
41 LoopVal = 0; in getPhiRegs()
46 LoopVal = Phi.getOperand(i).getReg(); in getPhiRegs()
48 assert(InitVal != 0 && LoopVal != 0 && "Unexpected Phi structure."); in getPhiRegs()
386 unsigned LoopVal = 0; in generateExistingPhis() local
387 getPhiRegs(*BBI, BB, InitVal, LoopVal); in generateExistingPhis()
392 unsigned PhiOp2 = LoopVal; in generateExistingPhis()
393 if (VRMap[LastStageNum].count(LoopVal)) in generateExistingPhis()
394 PhiOp2 = VRMap[LastStageNum][LoopVal]; in generateExistingPhis()
397 int LoopValStage = Schedule.getStage(MRI.getVRegDef(LoopVal)); in generateExistingPhis()
402 unsigned NewReg = VRMap[PrevStage][LoopVal]; in generateExistingPhis()
405 if (VRMap[CurStageNum].count(LoopVal)) in generateExistingPhis()
406 VRMap[CurStageNum][Def] = VRMap[CurStageNum][LoopVal]; in generateExistingPhis()
440 VRMap[PrologStage - StageDiff - np].count(LoopVal) != 0) in generateExistingPhis()
441 PhiOp1 = VRMap[PrologStage - StageDiff - np][LoopVal]; in generateExistingPhis()
447 PhiOp1 = LoopVal; in generateExistingPhis()
474 MachineInstr *PhiInst = MRI.getVRegDef(LoopVal); in generateExistingPhis()
487 VRMap[PrevStage - StageDiffAdj].count(LoopVal)) in generateExistingPhis()
488 PhiOp2 = VRMap[PrevStage - StageDiffAdj][LoopVal]; in generateExistingPhis()
496 VRMap[PrevStage - StageDiffAdj - np].count(LoopVal)) in generateExistingPhis()
497 PhiOp2 = VRMap[PrevStage - StageDiffAdj - np][LoopVal]; in generateExistingPhis()
512 int LVNumStages = getStagesForPhi(LoopVal); in generateExistingPhis()
516 if (LVNumStages > (int)np && VRMap[CurStageNum].count(LoopVal)) { in generateExistingPhis()
523 if (VRMap[ReuseStage - np].count(LoopVal)) { in generateExistingPhis()
524 NewReg = VRMap[ReuseStage - np][LoopVal]; in generateExistingPhis()
531 if (VRMap[LastStageNum - np - 1].count(LoopVal)) in generateExistingPhis()
532 PhiOp2 = VRMap[LastStageNum - np - 1][LoopVal]; in generateExistingPhis()
541 VRMap[CurStageNum - StageDiff - np].count(LoopVal)) in generateExistingPhis()
542 PhiOp2 = VRMap[CurStageNum - StageDiff - np][LoopVal]; in generateExistingPhis()
560 if (InKernel && VRMap[PrevStage - np].count(LoopVal)) in generateExistingPhis()
561 PrevReg = VRMap[PrevStage - np][LoopVal]; in generateExistingPhis()
592 if (NumStages == 0 && IsLast && VRMap[CurStageNum].count(LoopVal)) in generateExistingPhis()
593 replaceRegUsesAfterLoop(Def, VRMap[CurStageNum][LoopVal], BB, MRI, LIS); in generateExistingPhis()
1077 unsigned StageNum, unsigned PhiStage, unsigned LoopVal, unsigned LoopStage, in getPrevMapVal() argument
1081 MachineInstr *LoopInst = MRI.getVRegDef(LoopVal); in getPrevMapVal()
1082 if (PhiStage == LoopStage && VRMap[StageNum - 1].count(LoopVal)) in getPrevMapVal()
1084 PrevVal = VRMap[StageNum - 1][LoopVal]; in getPrevMapVal()
1085 else if (VRMap[StageNum].count(LoopVal)) in getPrevMapVal()
1088 PrevVal = VRMap[StageNum][LoopVal]; in getPrevMapVal()
1091 PrevVal = LoopVal; in getPrevMapVal()
1114 unsigned LoopVal = 0; in rewritePhiValues() local
1115 getPhiRegs(PHI, BB, InitVal, LoopVal); in rewritePhiValues()
1119 unsigned LoopStage = (unsigned)Schedule.getStage(MRI.getVRegDef(LoopVal)); in rewritePhiValues()
1125 getPrevMapVal(StageNum - np, PhiStage, LoopVal, LoopStage, VRMap, BB); in rewritePhiValues()
1204 unsigned LoopVal = 0; in isLoopCarried() local
1205 getPhiRegs(Phi, Phi.getParent(), InitVal, LoopVal); in isLoopCarried()
1206 MachineInstr *Use = MRI.getVRegDef(LoopVal); in isLoopCarried()